import Link from 'next/link'; import { CompanyTable } from '@/components/company/company-table'; import { cn } from '@/lib/cn'; import { fmtInt, fmtPctSigned, fmtScore, fmtSigned } from '@/lib/format'; import { RANKING_KINDS, RANKING_WINDOWS, routes } from '@/lib/site'; import type { Rankings } from '@/lib/types'; export function RankingTabs({ kind, window, country, industry }: { kind: string; window: string; country?: string; industry?: string }) { const href = (k: string, w: string) => `${routes.rankings(k, w)}${country ? `&country=${country}` : ''}${industry ? `&industry=${industry}` : ''}`; return (