import React from 'react'; import { CheckCircle, AlertCircle, Info, User, FileText } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; import { UniversignType } from '@/types/sageTypes'; import { getAlluniversign } from '@/store/features/universign/selectors'; import { useAppSelector } from '@/store/hooks'; import { formatDateFRCourt } from '@/lib/utils'; const notifications = [ { id: 1, type: 'success', icon: CheckCircle, title: 'Devis signé', message: 'Le devis DEV-00015 a été signé par ACME Corp', time: '5 min' }, { id: 2, type: 'info', icon: FileText, title: 'Commande validée', message: 'CMD-00023 validée pour 15 450€', time: '12 min' }, { id: 3, type: 'warning', icon: AlertCircle, title: 'Nouveau ticket', message: 'Ticket #TK-00042 créé par Sophie Martin', time: '25 min' }, { id: 4, type: 'info', icon: User, title: 'Nouvel utilisateur', message: 'Marie Dubois a été ajoutée', time: '1h' }, { id: 5, type: 'success', icon: FileText, title: 'Nouvelle opportunité', message: 'Opportunité "Projet Digital" créée', time: '2h' }, ]; const NotificationCenter = ({ onClose }: { onClose: () => void }) => { const universign = useAppSelector(getAlluniversign) as UniversignType[]; const devisSigned = universign.filter( (item) => item.local_status === "SIGNE" ); return (

Notifications

{devisSigned.length > 0 ? ( devisSigned.map((notif) => (
{/* */} {/* */}

Devis signé

{/* {notif.message} */} {`Le devis ${notif.sage_document_id} a été signé`}

{formatDateFRCourt(notif.signed_at)}

)) ) : (
Aucune notification
)}
{/*
*/}
); }; export default NotificationCenter;