import Link from 'next/link'; import { t } from '@/i18n'; import { cn } from '@/lib/cn'; import { fixed, grouped } from '@/lib/format'; import { routes } from '@/lib/site'; import { topicById } from '@/lib/topics'; import type { RelatedResponse } from '@/lib/types-analytics'; /** Statistically related indicators: ρ, r, N, year, direction; each row opens the scatter of the pair. */ export function RelatedTable({ data, slug }: { data: RelatedResponse; slug: string }) { if (!data.items.length) return

{t('indicator.related.noneStat')}

; return (

{t('indicator.related.method', { year: data.year_used ?? '', n: grouped(data.n_candidates) })} {data.note}

); }