import * as Dialog from '@radix-ui/react-dialog' import { useNotifications, type AppNotification } from '@/hooks/useNotifications' import { cn } from '@/lib/utils' const TYPE_ICON: Record = { query_answered: '✓', escalation_spike: '⚠', breaking_change: '🔴', data_sync_failed: '✕', knowledge_gap: '💡', } interface Props { open: boolean onClose: () => void } export function NotificationCenter({ open, onClose }: Props) { const { notifications, unreadCount, markRead, markAllRead } = useNotifications() return ( { if (!o) onClose() }}>
Notifications {unreadCount > 0 && ({unreadCount})}
{unreadCount > 0 && ( )}
{notifications.length === 0 && (

No notifications yet

)} {notifications.map((n) => ( ))}
) }