import { Link } from 'react-router-dom'; import { useAuth } from '../context/AuthContext'; import { useSocket } from '../context/SocketContext'; import { Camera, LogOut, User, Bell, MessageSquare } from 'lucide-react'; import { useState } from 'react'; const Header = () => { const { user, activeRole, switchRole, logout } = useAuth(); const { notifications, setNotifications } = useSocket() || { notifications: [] }; const [isNotifOpen, setIsNotifOpen] = useState(false); const unreadCount = notifications.filter(n => !n.isRead).length; return (
SnapLocalPro
); }; export default Header;