Lib: Add info/warning toast helpers

This commit is contained in:
2025-03-14 22:17:54 +01:00
parent f39c1a9090
commit 12803a7b8f

View File

@ -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,