import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { TranslateService } from '@ngx-translate/core';
import { NanoDialogBaseComponent } from '../nano-base-dialog';

@Component({
  selector: 'app-waiting-dialog',
  templateUrl: './waiting-dialog.component.html',
  styleUrls: ['./waiting-dialog.component.scss'],
})
export class WaitingDialogComponent extends NanoDialogBaseComponent<WaitingDialogComponent> {
  constructor(
    public dialogRef: MatDialogRef<WaitingDialogComponent>,
    @Inject(MAT_DIALOG_DATA) public dialogData: WaitingDialogData,
    public translate: TranslateService
  ) {
    super(dialogRef);
  }

  closeWithOk() {
    this.dialogRef.close(true);
  }
}

export interface WaitingDialogData {
  title: string;
  text: string;
}
