import { MdcSnackbarService , ISnackbarOptions } from '@aurelia-mdc-web/snackbar' ; import { autoinject } from 'aurelia-framework' ; @ autoinject export class Custom { constructor ( private snackbar ) { } async openCustom ( customClasses ) { await this . snackbar . open ( 'Can\'t send photo. Retry in 5 seconds.' , 'Retry' , { dismissible : true , classes : customClasses . classes , actionClasses : customClasses . actionClasses , dismissClasses : customClasses . dismissClasses } ) ; } }