'use client'; import { useState } from 'react'; import { Bell } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { useNotificationHub } from '@/lib/hooks/useNotificationHub'; import { Badge } from '@/components/ui/badge'; export function NotificationPopover() { const { notifications, connectionState, clearNotifications, isConnected } = useNotificationHub(); const [isOpen, setIsOpen] = useState(false); const unreadCount = notifications.length; return (
No notifications
{notification.message}
{new Date(notification.timestamp).toLocaleString()}