import { useState } from "react"; import { Link, useLocation } from "wouter"; import { Logo } from "@/components/ui/logo"; import { Button } from "@/components/ui/button"; import { useAuth } from "@/hooks/use-auth"; import { Sheet, SheetContent, SheetTrigger, SheetClose } from "@/components/ui/sheet"; import { Menu } from "lucide-react"; export default function Header() { const [location] = useLocation(); const { user, logoutMutation } = useAuth(); const isActive = (path: string) => { return location === path ? "text-white" : "text-white text-opacity-80 hover:text-white"; }; const navLinks = [ { name: "Book a Class", path: "/calendar" }, { name: "About Fadia", path: "/about" }, { name: "Contact", path: "/contact" }, ]; return (
{/* Desktop Navigation */}
{user ? ( <> Hi, {user.fullName || user.username} ) : ( <> Login Sign Up )}
{/* Mobile Menu */}
{navLinks.map((link) => ( {link.name} ))}
{user ? ( <>
Hi, {user.fullName || user.username}
) : ( <> Login Sign Up )}
); }