interface ComparisonRow { metric: string; left: string; right: string; } interface ComparisonTableProps { leftLabel: string; rightLabel: string; rows: ComparisonRow[]; metricLabel?: string; } export function ComparisonTable({ leftLabel, rightLabel, rows, metricLabel = "Metric", }: ComparisonTableProps) { const thClass = "font-sans text-[0.7rem] font-semibold uppercase tracking-widest text-primary px-4 py-3 border-b-2 border-primary text-left"; const tdClass = "px-4 py-3 border-b border-border-subtle align-top last:[&:last-child]:border-b-0"; return (
| {metricLabel} | {leftLabel} | {rightLabel} |
|---|---|---|
| {row.metric} | {row.left} | {row.right} |