import React from "react"; // hooks import { AlertTriangle, CheckCircle, Info, X, XCircle } from "lucide-react"; import useToast from "hooks/use-toast"; // icons const ToastAlerts = () => { const { alerts, removeAlert } = useToast(); if (!alerts) return null; return (
{alerts.map((alert) => (
{alert.type === "success" ? (

{alert.title}

{alert.message &&

{alert.message}

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