import React from 'react'; import type { CV } from '../schema/cvSchema'; import { sanitizeHtml } from '../schema/cvSchema'; interface MinimalTemplateProps { cv: CV; className?: string; } // Minimal clean template with generous whitespace and serif headings const MinimalTemplate: React.FC = ({ cv, className = '' }) => { const { personal, summary, work = [], education = [], skills = [], languages = [], certifications = [] } = cv; return (

{(personal?.firstName || '')} {(personal?.lastName || '')}

{personal?.email && {personal.email}} {personal?.phone && {personal.phone}} {(personal?.city || personal?.country) && ( {personal.city}{personal.city && personal.country ? ', ' : ''}{personal.country} )}
{summary && (

Summary

)} {work.length > 0 && (

Experience

{work.map((job) => (

{job.title}

{job.company}
{job.startDate} - {job.endDate || 'Present'} {job.location &&
{job.location}
}
{job.bullets && job.bullets.length > 0 && (
    {job.bullets.map((b, i) => (
  • {b}
  • ))}
)}
))}
)} {education.length > 0 && (

Education

{education.map((ed) => (

{ed.degree}

{ed.school}
{ed.startDate}{ed.endDate && <> - {ed.endDate}}
))}
)} {(skills.length > 0 || languages.length > 0 || certifications.length > 0) && (
{skills.length > 0 && (

Skills

{skills.map((s) => ( {s.name}{s.level ? ` — ${s.level}` : ''} ))}
)} {languages.length > 0 && (

Languages

{languages.map((l) => ( {l.name}{l.level ? ` — ${l.level}` : ''} ))}
)} {certifications.length > 0 && (

Certifications

    {certifications.map((c) => (
  • {c.name}{c.issuer ? ` - ${c.issuer}` : ''}{c.date ? ` (${c.date})` : ''}
  • ))}
)}
)}
); }; export default MinimalTemplate;