import { usePrimaryPage } from '@/PageManager' import { useKeyboardNavigation } from '@/providers/KeyboardNavigationProvider' import { useNostr } from '@/providers/NostrProvider' import { useNotification } from '@/providers/NotificationProvider' import { Bell } from 'lucide-react' import SidebarItem from './SidebarItem' export default function NotificationsButton({ collapse, navIndex }: { collapse: boolean; navIndex?: number }) { const { checkLogin } = useNostr() const { navigate, current, display } = usePrimaryPage() const { hasNewNotification } = useNotification() const { clearColumn } = useKeyboardNavigation() const handleClick = () => { checkLogin(() => { navigate('notifications') clearColumn(1) }) } return (
{hasNewNotification && (
)}
) }