import { Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material/table';

@Component({
  selector: 'app-history-vacation',
  templateUrl: './history-vacation.component.html',
  styleUrls: ['./history-vacation.component.css']
})
export class HistoryVacationComponent implements OnInit{

  public dataSource: MatTableDataSource<any>;
  public displayedColumns: Array<string>;

  public isLoading: boolean;
  public isLoadingForm: boolean;
  constructor() {
    this.dataSource = new MatTableDataSource<any>([
      {
        'NUMERO_VACACIONES': '0000000001',
        'FECHA_INICIAL': '27-09-2023',
        'FECHA_FINAL': '30-09-2023',
        'DIAS_SOLICITADOS': '4',
        'ESTADO': 'Pendiente',
      }
    ]);
    this.displayedColumns = [
      'NUMERO_VACACIONES',
      'FECHA_INICIAL',
      'FECHA_FINAL',
      'DIAS_SOLICITADOS',
      'ESTADO',
      // 'ACCIONES',
    ];
    this.isLoading = false;
    this.isLoadingForm = false;
  }
  ngOnInit(): void {
    throw new Error('Method not implemented.');
  }
}
