import './tabs.css';
import { CurrentLink } from '@/comps/nav/current-link';
import type { To } from '@/comps/nav/to';
type TabItem = To & { label: string; count?: number };
const compact = new Intl.NumberFormat('en', { notation: 'compact' });
/** Tabs that are pages under one header; the current one follows the address. */
export function Tabs({ label, items }: { label: string; items: TabItem[] }) {
return (
);
}
/** Tabs before their page arrives: the same row, kept blank until the labels come with their counts. */
export function LoadingTabs({ labels }: { labels: string[] }) {
return (
);
}