'use client' import Link from 'next/link' import { usePathname } from 'next/navigation' import { cn } from '@/lib/utils' import type { ManualEntry } from '@/lib/manual.generated' type Props = { toc: readonly ManualEntry[] } function entryHref(entry: ManualEntry): string { if (entry.slug.length === 0) return '/manual' return '/manual/' + entry.slug.join('/') } export function ManualSidebar({ toc }: Props) { const pathname = usePathname() return ( ) }