"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { docsTopicIsCurrent } from "@/lib/docs-navigation"; import { DOC_CATEGORY_LABELS, docTopicHref, docTopicIsExternal, getTopicsByCategory, } from "@/lib/docs-map"; import { getDocsShell, pickText } from "@/lib/i18n/dictionaries"; /** * The one docs navigation: every registered topic, grouped by category, * with the current route marked. Chrome strings come from the docs-shell * dictionary; topic names are docs-map pairs resolved through `pickText`. */ export function DocsSidebar({ locale }: { locale: string }) { const t = getDocsShell(locale); const pathname = usePathname(); const byCategory = getTopicsByCategory(); return ( ); }