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

{message}

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

{message}

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

{message}

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

{message}

), { duration: 6000 } ); break; } } export default showToast;