import { Check, Minus, X } from 'lucide-react'; import type { FeatureRow } from '@/lib/marketing/comparison-types'; function renderStatus(value: FeatureRow['openframe']) { if (value === 'yes') { return ( Yes ); } if (value === 'no') { return ( No ); } if (value === 'partial') { return ( Partial ); } return {value}; } interface FeatureComparisonTableProps { rows: FeatureRow[]; competitorName: string; } export function FeatureComparisonTable({ rows, competitorName }: FeatureComparisonTableProps) { return (
{rows.map((row) => ( ))}
Feature OpenFrame {competitorName}
{row.label}
{row.note ? (
{row.note}
) : null}
{renderStatus(row.openframe)} {renderStatus(row.competitor)}
); }