import {Check, X} from 'lucide-react'; import {motion} from 'framer-motion'; import React from 'react'; export interface ComparisonRow { feature: string; plunk: boolean | string; competitor: boolean | string; } interface ComparisonTableProps { competitorName: string; rows: ComparisonRow[]; } export function ComparisonTable({competitorName, rows}: ComparisonTableProps) { return (
Feature
Plunk
{competitorName}
{rows.map((row, index) => (
{row.feature}
{typeof row.plunk === 'boolean' ? ( row.plunk ? ( ) : ( ) ) : ( {row.plunk} )}
{typeof row.competitor === 'boolean' ? ( row.competitor ? ( ) : ( ) ) : ( {row.competitor} )}
))}
); }