"use client"; import { usePathname } from "next/navigation"; import type { DataspaceNav } from "@/lib/catalog"; /** * Sticky header shell adapted from OnCo SiteHeader. * Copyright (c) 2026 OnCo. MIT License. See ui/NOTICE. * The OnCo mark and command palette are not included. * Kind links come from the snapshot registry passed in by the layout. */ export function SiteHeader({ dataspaces }: { dataspaces: DataspaceNav[] }) { const path = usePathname() ?? "/"; const active = dataspaces.find((item) => path === `/${item.id}` || path.startsWith(`/${item.id}/`)) ?? dataspaces.find((item) => item.id === "systems-thinking") ?? dataspaces[0]; return (
Content Explorer {active ? ( ) : null}
); }