import Link from "next/link"; import { ChevronRight } from "lucide-react"; // Reports breadcrumb: always rooted at "Reports", then the section and any // drill/detail crumbs. A crumb with an href is a link; the last is the current. export function ReportBreadcrumb({ trail }: { trail: { label: string; href?: string }[] }) { return ( ); } // Server-rendered segmented control: each option is a link that re-renders the // page with the new value in the query string (used for tier / break-down / top-N). export function SegLink({ label, options, current, hrefFor, }: { label: string; options: { value: string; label: string }[]; current: string; hrefFor: (v: string) => string; }) { return (
{subtitle}
}