import React from 'react'; import useAppStore from '../store/useAppStore'; const NotificationCenter: React.FC = () => { const notifications = useAppStore((s) => s.notifications); const removeNotification = useAppStore((s) => s.removeNotification); if (!notifications || notifications.length === 0) return null; return (
{notifications.map((n) => (
{n.message}
))}
); }; export default NotificationCenter;