frontend/script/components/Section.tsx
2023-11-24 22:42:25 +01:00

20 lines
403 B
TypeScript

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>
);
}