mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
20 lines
403 B
TypeScript
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>
|
|
);
|
|
}
|