import Link from "next/link"; import { cn } from "@/lib/utils"; // Tabs that are LINKS (canvas `.tabs`): each tab is an address, so a tab is // bookmarkable, the back button works, and a server page renders the right one // with no client state. The current one carries `aria-current="page"` and the // Signal underline; a count sits beside its label in Meter. // // No prefetch: every page here is dynamic, so a prefetched tab is a full server // render of a page nobody asked for yet -- seven of them per piece page (P3 // found the rail's prefetches keeping the server busy enough to fail specs). // // On a phone the strip is one row that scrolls sideways and snaps (`.tab-strip`, // app/globals.css "phone: the shell"), starting at the tab you are on. export type TabItem = { href: string; label: React.ReactNode; current?: boolean; count?: number | string; testid?: string }; export function Tabs({ items, label, className, ...props }: React.ComponentProps<"nav"> & { items: TabItem[]; label: string }) { return ( ); }