import { Component , Inject } from "@angular/core" ; import { MAT_DIALOG_DATA , MatDialogRef } from "@angular/material/dialog" ; /**
 * A configurable confirmation dialog box
 * used by the  ConfirmationDialogService .
  @ Component ( { selector : "app-confirmation-dialog" , templateUrl : "./confirmation-dialog.component.html" , styleUrls : [ "./confirmation-dialog.component.scss" ] , } ) export class ConfirmationDialogComponent { param dialogRef param data constructor ( public dialogRef , @ Inject ( MAT_DIALOG_DATA ) public data ) { } } /**
 * Options to configure the  ConfirmationDialogComponent .
  export interface ConfirmationDialogConfig { /** title of the dialog box */ title : string ; /** description text in the dialog box */ text : string ; /** Whether to display an option of yes/no buttons or just a single "ok" button */ yesNo : boolean ; }