import React from 'react'; import { CreditCard, ShieldCheck, RefreshCcw, Cpu, LucideIcon, CheckCircle2 } from 'lucide-react'; import { Section } from '../types'; const IconMap: Record = { CreditCard, ShieldCheck, RefreshCcw, Cpu, }; interface SectionCardProps { section: Section; } const SectionCard: React.FC = ({ section }) => { const Icon = IconMap[section.icon] || Cpu; const getPriorityColor = (priority: string) => { switch (priority) { case 'high': return 'border-l-4 border-l-rose-500'; case 'medium': return 'border-l-4 border-l-amber-500'; default: return 'border-l-4 border-l-slate-300'; } }; return (

{section.title}

{section.subtitle}

{section.questions.map((q, idx) => (
{idx + 1}

{q.text.split(':').length > 1 ? ( <> {q.text.split(':')[0]}: {q.text.split(':')[1]} ) : q.text}

{q.priority === 'high' && ( Essential )}
))}
); }; export default SectionCard;