import { Component, ChangeDetectionStrategy, EventEmitter, Output, Input } from '@angular/core';
import { ModalDialogAction } from './modal-dialog-actions.model';

@Component({
  selector: 'app-modal-dialog',
  templateUrl: 'modal-dialog.component.html',
  styleUrls: ['./modal-dialog.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ModalDialogComponent {
  @Input() title: string;
  @Input() text: string;
  @Input() actions: ModalDialogAction[] = [];
  @Input() loading = false;

  @Output() close = new EventEmitter<void>();

  constructor() {}
}
