mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-14 18:57:18 +02:00
18 lines
373 B
TypeScript
18 lines
373 B
TypeScript
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);
|
|
};
|