"use client"; import Link from "next/link"; import { NavLinks } from "./nav-links"; import { DownloadButton } from "./download-button"; import { ThemeToggle } from "../theme"; import { GitHubStarsBadge } from "./github-stars"; import { useMobileDrawer, MobileDrawerOverlay, MobileDrawerToggle, } from "./mobile-drawer"; export function SiteHeader({ section, hideLogo, }: { section?: string; hideLogo?: boolean; }) { const { open, toggle, close, drawerRef, buttonRef } = useMobileDrawer(); return ( <> {/* Left: logo + section */} {!hideLogo && ( <> cmux {section && ( <> / {section} > )} > )} {/* Center: nav links */} {/* Right: GitHub stars + Download + theme + mobile */} {/* Mobile overlay + drawer — outside header to avoid backdrop-filter breaking fixed positioning on iOS */} {/* Drawer header — mirrors the site header row */} Docs Blog Changelog Community > ); }