import { Component, OnInit } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
import { TranslateService } from '@ngx-translate/core';
import { DeviceDetectorService } from 'ngx-device-detector';
import { NanoDialogBaseComponent } from '../nano-base-dialog';

@Component({
  selector: 'app-metamask-alert-dialog',
  templateUrl: './metamask-alert-dialog.component.html',
  styleUrls: ['./metamask-alert-dialog.component.scss'],
})
export class MetamaskAlertDialogComponent
  extends NanoDialogBaseComponent<MetamaskAlertDialogComponent>
  implements OnInit
{
  public isFirefox;

  constructor(
    public dialogRef: MatDialogRef<MetamaskAlertDialogComponent>,
    public translate: TranslateService,
    private deviceDetectorService: DeviceDetectorService
  ) {
    super(dialogRef);
    this.isFirefox = this.deviceDetectorService.browser == 'Firefox';
  }

  ngOnInit(): void {}
}
