import React from "react"; import { AlertTriangle, CheckCircle, Info, X, XCircle } from "lucide-react"; // hooks 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;