mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-02-08 21:59:39 +01:00
24 lines
546 B
TypeScript
24 lines
546 B
TypeScript
export interface CurriculumVitaeSectionProps extends React.PropsWithChildren {
|
|
id: string
|
|
icon: React.ReactNode
|
|
title: string
|
|
}
|
|
|
|
export const CurriculumVitaeSection: React.FC<CurriculumVitaeSectionProps> = (
|
|
props,
|
|
) => {
|
|
const { id, icon, title, children } = props
|
|
|
|
return (
|
|
<section className="detail" id={id}>
|
|
<div className="icon">{icon}</div>
|
|
|
|
<div className="info">
|
|
<h4 className="font-semibold uppercase">{title}</h4>
|
|
|
|
<div className="content">{children}</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|