This commit is contained in:
Robin Appelman 2023-11-24 22:42:25 +01:00
commit 189788a1b6
14 changed files with 599 additions and 6 deletions

View file

@ -0,0 +1,20 @@
import * as React from 'react';
export interface SectionProps {
title: string;
children: any[] | any;
className?: string;
}
export function Section(props: SectionProps) {
return (
<section key={props.title} className={props.title + (props.className ? ' ' + props.className : '')}>
<div className="title">
<h3>
{props.title}
</h3>
</div>
{props.children}
</section>
);
}