mirror of
https://github.com/cupcakearmy/ora.git
synced 2026-04-02 20:15:25 +00:00
progress
This commit is contained in:
7
src/dashboard/toasts.js
Normal file
7
src/dashboard/toasts.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { writable } from 'svelte/store'
|
||||
|
||||
export const toasts = writable([])
|
||||
|
||||
export function notify(message, type = 'success') {
|
||||
toasts.update((toasts) => [...toasts, { message, type }])
|
||||
}
|
||||
Reference in New Issue
Block a user