import React from "react" import { toast as Controller, Toast } from "react-hot-toast" import ToasterContainer from "../../atoms/toaster-container" import CrossIcon from "../../fundamentals/icons/cross-icon" import XCircleIcon from "../../fundamentals/icons/x-circle-icon" type FormErrorToasterProps = { toast: Toast message: string | React.ReactNode title: string } const FormErrorToaster: React.FC = ({ toast, message, title, }) => { const onDismiss = () => { Controller.dismiss(toast.id) } return (
{title} {message}
Close
) } export default FormErrorToaster