import { FC } from "react"; import { CheckCircleIcon, ExclamationCircleIcon, ExclamationTriangleIcon, XMarkIcon } from "@heroicons/react/24/solid"; import { toast, Toast as Tooast } from "react-hot-toast"; import { classNames } from "../../utils"; type Props = { type: "error" | "success" | "warning" body?: string t?: Tooast; }; const Toast: FC = ({ type, body, t }) => (
{type === "success" &&

{type === "success" && "Success"} {type === "error" && "Error"} {type === "warning" && "Warning"}

{body}

); export default Toast;