/** * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Project: Hilmacorp.ai — Web Platform * File: components/Header.tsx * Description: Sticky site header with desktop navigation, mobile menu, and locale switcher (light theme) */ "use client"; import { useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import Logo from "@/components/Logo"; import LocaleSwitcher from "@/components/LocaleSwitcher"; interface NavStrings { home: string; about: string; founders: string; services: string; security: string; industries: string; apps: string; contact: string; cta: string; openMenu: string; closeMenu: string; switchLocale: string; } export default function Header({ locale, nav, }: { locale: "fr" | "en"; nav: NavStrings; }) { const [open, setOpen] = useState(false); const pathname = usePathname() ?? ""; const links = [ { href: `/${locale}/about`, label: nav.about }, { href: `/${locale}/founders`, label: nav.founders }, { href: `/${locale}/services`, label: nav.services }, { href: `/${locale}/security`, label: nav.security }, { href: `/${locale}/industries`, label: nav.industries }, { href: `/${locale}/apps`, label: nav.apps }, { href: `/${locale}/contact`, label: nav.contact }, ]; return (
setOpen(false)}>
{nav.cta}
{open ? ( ) : null}
); }