feat: version 1.0.0 (#21)
This commit is contained in:
14
client/composables/dialog.ts
Normal file
14
client/composables/dialog.ts
Normal file
@ -0,0 +1,14 @@
|
||||
let _showNotification: typeof showNotification
|
||||
|
||||
export function showNotification(data: {
|
||||
message: string
|
||||
icon?: string
|
||||
classes?: string
|
||||
duration?: number
|
||||
}) {
|
||||
_showNotification?.(data)
|
||||
}
|
||||
|
||||
export function provideNotificationFn(fn: typeof showNotification) {
|
||||
_showNotification = fn
|
||||
}
|
||||
Reference in New Issue
Block a user