import { Component, Inject } from '@angular/core'; import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, } from '@angular/material/legacy-dialog'; @Component({ selector: 'cnsl-app-secret-dialog', templateUrl: './app-secret-dialog.component.html', styleUrls: ['./app-secret-dialog.component.scss'], }) export class AppSecretDialogComponent { public copied: string = ''; constructor( public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: any, ) {} public closeDialog(): void { this.dialogRef.close(false); } }