chore(Notifications): support actions instead of specific undo and dismiss

This commit is contained in:
Benjamin Canac
2022-08-17 13:53:53 +02:00
parent c6706c76b2
commit a0d56d0f66
2 changed files with 20 additions and 35 deletions

View File

@@ -5,7 +5,10 @@ export interface ToastNotification {
type: string
icon?: string
timeout: number
undo?: Function
actions?: {
label: string,
click: Function
}[]
callback?: Function
}