import { Component , OnInit } from '@angular/core' ; import { NbDialogRef } from '@nebular/theme' ; export interface AlertOptions { title ? : string ; message ? : string ; status ? : string ; } @ Component ( { selector : 'ga-alert-modal' , templateUrl : './alert-modal.component.html' } ) export class AlertModalComponent implements OnInit { alertOptions : AlertOptions ; constructor ( private dialogRef ) { } ngOnInit ( ) { } closeDialog ( val ) { this . dialogRef . close ( val ) ; } }