"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { SearchBar } from "./SearchBar"; const navLinks = [ { href: "/", label: "Home" }, { href: "/genre", label: "Genres" }, ]; export function Header() { const pathname = usePathname(); // Hide header on chapter reader for immersive reading if (pathname.match(/^\/manga\/[^/]+\/\d+$/)) { return null; } return (
{/* Top row: logo + search */}
SunnyMH SunnyMH {/* Desktop nav links */}
); }