import { Link, useLocation } from "react-router"; import { Menu, X, Wrench } from "lucide-react"; import { useState } from "react"; import { useTranslation } from "react-i18next"; import { LanguageSwitcher } from "./LanguageSwitcher"; import { ThemeToggle } from "./ThemeToggle"; export function Header() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const location = useLocation(); const { t } = useTranslation(); const navItems = [ { name: t("header.nav.home"), path: "/" }, { name: t("header.nav.services"), path: "/services" }, { name: t("header.nav.about"), path: "/about" }, { name: t("header.nav.gallery"), path: "/gallery" }, { name: t("header.nav.contact"), path: "/contact" }, ]; const isActive = (path: string) => location.pathname === path; return (
{/* Logo */} {t("header.brand")} {/* Desktop Navigation */} {/* CTA Button */} {t("header.cta")} {/* Mobile Menu Button */}
{/* Mobile Navigation */} {mobileMenuOpen && ( )}
); }