import React from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { CheckCircle2, AlertCircle, Info, X, Zap } from 'lucide-react'; import useToastStore from '../../store/toastStore'; const Toaster = () => { const { toasts, removeToast } = useToastStore(); return (
{toasts.map((toast) => (
{/* Animated Background Pulse */}
{toast.type === 'success' && } {toast.type === 'error' && } {toast.type === 'info' && } {toast.type === 'warning' && }

{toast.type || 'PROTOCOL'}

{toast.message}

))}
); }; export default Toaster;