"use client"; import { useState } from "react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { Calendar, LayoutGrid, Heart, UserCog, Settings, LogOut, FileText, } from "lucide-react"; import { useAppTheme } from "@/components/ThemeProvider"; import { ThemeToggle } from "@/components/ThemeToggle"; import { useAuth } from "@/hooks/useAuth"; import { toast } from "sonner"; export function Header() { const pathname = usePathname(); const router = useRouter(); // Notification state - commented out // const [notificationsOpen, setNotificationsOpen] = useState(false); const [userMenuOpen, setUserMenuOpen] = useState(false); const { theme } = useAppTheme(); const isDark = theme === "dark"; const { logout } = useAuth(); const handleLogout = () => { setUserMenuOpen(false); logout(); toast.success("Logged out successfully"); router.push("/"); }; // Mock notifications data - commented out /* const notifications = [ { id: 1, title: "New appointment scheduled", message: "John Smith booked an appointment for tomorrow", time: "2 hours ago", type: "info", read: false, }, { id: 2, title: "Payment received", message: "Payment of $150 received from Jane Doe", time: "5 hours ago", type: "success", read: false, }, ]; const unreadCount = notifications.filter((n) => !n.read).length; */ return (
{/* Logo */}
{/* Navigation Links */} {/* Right Side Actions */}
{/* Notification Popover - Commented out */} {/* Thumbtack Design at Top Right */}
); }