mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
16 lines
357 B
TypeScript
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);
|
|
}
|
|
}; |