"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cx } from "@/lib/format"; import { Wordmark } from "./logo"; import { MarketClock } from "./market-clock"; import { SearchButton } from "./search-dialog"; import { ThemeToggle } from "./theme-toggle"; import { StreamIndicator } from "./stream-indicator"; const NAV: Array<{ href: string; label: string; match?: RegExp }> = [ { href: "/markets", label: "Markets", match: /^\/(markets|stocks|etfs|indices|crypto|forex|rates|commodities|instruments)/ }, { href: "/live", label: "Live" }, { href: "/events", label: "Events", match: /^\/(events|halts|filings)/ }, { href: "/exchanges", label: "World", match: /^\/(exchanges|countries)/ }, { href: "/sources", label: "Sources", match: /^\/(sources|connectors|data-health|status|coverage)/ }, { href: "/compare", label: "Compare" }, ]; export function SiteHeader() { const path = usePathname(); return (
); }