import {Component, Input, OnInit} from '@angular/core';
import {Router} from "@angular/router";
import {SessionDataProviderService} from "../../store/session-data-provider.service";

@Component({
  selector: 'app-job-details',
  templateUrl: './job-details.component.html',
  styleUrls: ['./job-details.component.scss'],
})
export class JobDetailsComponent implements OnInit {
  @Input('jobData') jobData:any;
  session_image_server:string='';
  curr_session:string='';
  constructor(private router: Router, public sessionDataProviderService: SessionDataProviderService) {
   // debugger;
    //this.jobData  =  this.router.getCurrentNavigation().extras.state;
   // if (this.jobData==undefined){
   //   return;
   // }
  }

  ngOnInit() {
    console.log("jobData => ", this.jobData);
    this.session_image_server = this.sessionDataProviderService.session_image_server;
    this.curr_session=this.sessionDataProviderService.session;
  }

}
