import { InterpretationReport } from '@/lib/types' interface BenchmarkTableProps { alignment: InterpretationReport['benchmarkAlignment'] } const bandStyles: Record = { elite: 'bg-green-100 text-green-800', high: 'bg-blue-100 text-blue-800', medium: 'bg-yellow-100 text-yellow-800', low: 'bg-red-100 text-red-800', } const bandLabels: Record = { elite: 'Elite', high: 'High', medium: 'Medium', low: 'Low', } export default function BenchmarkTable({ alignment }: BenchmarkTableProps) { return (
{alignment.map((row) => ( ))}
Metric Your Value Benchmark Range Performance Band
{row.metric} {row.yourValue} {row.typicalRange} {bandLabels[row.band] ?? row.band}
) }