19 lines
469 B
TypeScript
19 lines
469 B
TypeScript
interface CvSectionProps {
|
|
title: string;
|
|
html: string;
|
|
}
|
|
|
|
export function CvSection({ title, html }: CvSectionProps) {
|
|
if (!html.trim()) return null;
|
|
return (
|
|
<section className="mb-4">
|
|
<h3 className="mb-1 text-[0.75rem] font-bold uppercase tracking-wide text-muted">
|
|
{title}
|
|
</h3>
|
|
<div
|
|
className="cv-md text-[0.8rem] leading-snug text-ink"
|
|
dangerouslySetInnerHTML={{ __html: html }}
|
|
/>
|
|
</section>
|
|
);
|
|
} |