diff --git a/src/lib/toast.ts b/src/lib/toast.ts index 2f0a325..b10f8c9 100644 --- a/src/lib/toast.ts +++ b/src/lib/toast.ts @@ -1,5 +1,23 @@ import type { ToastSettings } from "@skeletonlabs/skeleton"; +export const get_info_toast = (message: string): ToastSettings => { + return { + message, + hideDismiss: true, + timeout: 2000, + background: "variant-filled-tertiary", + }; +}; + +export const get_warning_toast = (message: string): ToastSettings => { + return { + message, + hideDismiss: true, + timeout: 2000, + background: "variant-filled-secondary", + }; +}; + export const get_error_toast = (message: string): ToastSettings => { return { message,