import React from "react"; // hooks import useToast from "hooks/use-toast"; // icons import { LinkIcon, XMarkIcon } from "@heroicons/react/24/outline"; import { ErrorIcon, SuccessIcon } from "components/icons"; const ToastAlerts = () => { const { alerts, removeAlert } = useToast(); if (!alerts) return null; return (
{alerts.map((alert) => (
{alert.type !== "info" ? ( <>
{alert.type === "success" ? ( ) : alert.type === "error" ? ( ) : ( "" )}

{alert.title}

{alert.message}

) : (
{alert.iconType === "copy" && ( )}

{alert.title}

)}
))}
); }; export default ToastAlerts;