FrontPilot / src /utils /toast.ts
[dyad]
Init Dyad app
a27839e
raw
history blame contribute delete
373 Bytes
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);
};