import { Check, Info } from "react-feather"; import toast from "react-hot-toast"; export default function showToast(message: string, variant: "success" | "warning" | "error") { switch (variant) { case "success": toast.custom( () => (

{message}

), { duration: 6000 } ); break; case "error": toast.custom( () => (

{message}

), { duration: 6000 } ); break; case "warning": toast.custom( () => (

{message}

), { duration: 6000 } ); break; default: toast.custom( () => (

{message}

), { duration: 6000 } ); break; } }