import { Component, OnInit, ChangeDetectionStrategy, Input } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ReasonDialogComponent } from '../../dialog/reason-dialog/reason-dialog/reason-dialog.component';

@Component({
  selector: 'empty-list',
  templateUrl: './empty-list.component.html',
  styleUrls: ['./empty-list.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class EmptyListComponent implements OnInit {
  list;
  @Input() emptyList : any = [];
  column = ['1','2','3','4','5','6','7','8','9']
  constructor(
    private dialog: MatDialog
  ) { }

  ngOnInit(): void {
  }

  reason(x){
    const dialogRef = this.dialog.open(ReasonDialogComponent, {
      width: '90vh',
      data: x,
    });
  }

}
