18 lines
493 B
TypeScript
18 lines
493 B
TypeScript
import type { Experience } from "@/lib/types/cv";
|
|
|
|
export interface CvExperienceRendered {
|
|
experience: Experience;
|
|
html: string;
|
|
}
|
|
|
|
export function CvExperiencePreview({ experience, html }: CvExperienceRendered) {
|
|
return (
|
|
<article className="mb-4">
|
|
<h4 className="text-[0.9rem] font-bold text-ink">{experience.titre}</h4>
|
|
<div
|
|
className="cv-md text-[0.8rem] leading-snug text-ink"
|
|
dangerouslySetInnerHTML={{ __html: html }}
|
|
/>
|
|
</article>
|
|
);
|
|
} |