import { Bell, RefreshCw, HelpCircle, User as UserIcon } from 'lucide-react'; import { Button } from '../ui/button'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../ui/dropdown-menu'; import { Badge } from '../ui/badge'; import { User } from '../../lib/mock-data'; interface HeaderProps { title: string; currentUser?: User | null; onRefresh?: () => void; } export function Header({ title, currentUser, onRefresh }: HeaderProps) { const notifications = [ { id: '1', message: 'New application assigned: APP-006', time: '5 min ago', unread: true }, { id: '2', message: 'Interview scheduled for APP-001', time: '1 hour ago', unread: true }, { id: '3', message: 'Document verified for APP-004', time: '2 hours ago', unread: false } ]; const unreadCount = notifications.filter(n => n.unread).length; return (

{title}

Manage and track dealership applications

{/* Current User Info */} {currentUser && (

{currentUser.name}

{currentUser.role}

)} {/* Refresh Button */} {onRefresh && ( )} {/* Help */} {/* Notifications */}

Notifications

{notifications.map((notification) => (

{notification.message}

{notification.time}

{notification.unread && (
)}
))}
); }