import { Component , Inject , OnInit } from '@angular/core' ; import { MAT_DIALOG_DATA } from '@angular/material/dialog' ; import { Doc } from '@app/core/Doc' ; import { BotStorageService } from '@app/core/storage' ; @ Component ( { selector : 'mute-resolver-dialog' , templateUrl : './resolver-dialog.component.html' , styleUrls : [ './resolver-dialog.component.scss' ] , } ) export class ResolverDialogComponent implements OnInit { public remoteName : string ; constructor ( botStorage , @ Inject ( MAT_DIALOG_DATA ) public doc ) { if ( botStorage . status === BotStorageService . AVAILABLE ) { this . remoteName = botStorage . id ; } } ngOnInit ( ) { } }