add toast to scaffold

This commit is contained in:
Will Chen
2025-04-14 15:59:34 -07:00
parent 7fbaa11274
commit 501f35a70b

View File

@@ -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);
};