diff --git a/scaffold/src/utils/toast.ts b/scaffold/src/utils/toast.ts new file mode 100644 index 0000000..b0dd80d --- /dev/null +++ b/scaffold/src/utils/toast.ts @@ -0,0 +1,17 @@ +import { toast } from "sonner"; + +export const showSuccess = (message: string) => { + toast.success(message); +}; + +export const showError = (message: string) => { + toast.error(message); +}; + +export const showLoading = (message: string) => { + return toast.loading(message); +}; + +export const dismissToast = (toastId: string) => { + toast.dismiss(toastId); +};