Implement Smart Notification Popover

This commit is contained in:
CycroftX
2026-02-03 23:00:54 +05:30
parent 5d5f1cd494
commit 7834e8f0b2
2 changed files with 276 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
import { Search, Bell, ChevronDown, LogOut } from 'lucide-react';
import { Search, ChevronDown, LogOut } from 'lucide-react';
import { NotificationPopover } from '@/components/notifications/NotificationPopover';
import { cn } from '@/lib/utils';
import { useAuth } from '@/contexts/AuthContext';
import {
@@ -60,17 +61,7 @@ export function TopBar({ title, description }: TopBarProps) {
</div>
{/* Notifications */}
<button
className={cn(
"relative h-10 w-10 flex items-center justify-center rounded-xl",
"neu-button"
)}
>
<Bell className="h-5 w-5 text-muted-foreground" />
<span className="absolute -top-1 -right-1 h-5 w-5 flex items-center justify-center rounded-full bg-error text-[10px] font-bold text-error-foreground">
3
</span>
</button>
<NotificationPopover />
{/* Profile Dropdown */}
<DropdownMenu>