'use client'; import { Bell, LogOut, Moon, Sun, ChevronDown, HelpCircle, KeyRound, ScanLine } from 'lucide-react'; import { useAuthStore } from '@/lib/auth-store'; import { useTheme } from '@/lib/theme-store'; import { useState } from 'react'; import Link from 'next/link'; import ChangePasswordModal from '@/components/layout/ChangePasswordModal'; export default function Header() { const { user, logout } = useAuthStore(); const { isDark, toggleTheme } = useTheme(); const [showUserMenu, setShowUserMenu] = useState(false); const [showNotifications, setShowNotifications] = useState(false); const [showChangePassword, setShowChangePassword] = useState(false); return (

{/* Help Documentation */} {/* Notifications */}
{showNotifications && (

Notifications

New booking received

Booking #BK-2024-001 created

2 minutes ago

Payment confirmed

Payment of 1,250 ETB received

15 minutes ago

System update

New features available

1 hour ago

View all notifications
)}
{/* Theme Toggle */} {/* User Menu */}
{showUserMenu && (

{user?.fullName || 'Full Name'}

{user?.email || 'user@email.com'}

Settings
)}
setShowChangePassword(false)} />
); }