Files
2026-04-01 15:52:53 -07:00

16 lines
357 B
TypeScript

import { toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
export const notify = (message: string, type: string) => {
switch (type) {
case "error":
toast.error(message);
break;
case "success":
toast.success(message);
break;
default:
toast.info(message);
}
};