import { Component, OnInit } from '@angular/core';
import { CommonService } from 'src/app/hmg-common/services/common/common.service';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss'],
})
export class HomeComponent implements OnInit {

  public timeCardOptions: any = [
    {
      imageName: 'MyTimeCard.png',
      heading: 'My Time Card',
      description: 'View your attendance records.',
      pageLink: '/time-card/time-card-details'
    },
    {
      imageName: 'Timeback.png',
      heading: 'Time Back',
      description: 'View and use your extra work time.',
      pageLink: '/time-card/home'
    },
    {
      imageName: 'MissingSwipe.png',
      heading: 'Missing Swipe',
      description: 'Resolve swipe and attendance records',
      pageLink: '/time-card/home'
    },
    {
      imageName: 'WorkOnBreak.png',
      heading: 'Work on Break',
      description: 'Record your work time in during break.',
      pageLink: '/time-card/home'
    }
  ];

  constructor(public common: CommonService) {}

  ngOnInit() {}

  public openDetailPage(path) {
    this.common.navigatePage(path);
  }
}
