/* site-header.tsx spboucher.ai Web Author: Simon-Pierre Boucher Mail: contact@spboucher.ai */ "use client"; import * as React from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Menu, X } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import { ThemeToggle } from "@/components/theme-toggle"; const navItems = [ { href: "/", label: "Home" }, { href: "/research", label: "Research" }, { href: "/teaching", label: "Teaching" }, { href: "/apps", label: "Apps" }, { href: "/blog", label: "Blog" }, { href: "/cv", label: "CV" }, ]; export function SiteHeader() { const pathname = usePathname(); const [open, setOpen] = React.useState(false); const isActive = (href: string) => pathname === href || (href !== "/" && pathname.startsWith(`${href}/`)); return (
Simon-Pierre Boucher
{open && ( )}
); }