mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
edit wip
This commit is contained in:
parent
0ab24ead47
commit
189788a1b6
14 changed files with 599 additions and 6 deletions
20
script/components/Section.tsx
Normal file
20
script/components/Section.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue