2023-05-05 23:23:34 +08:00

15 lines
443 B
TypeScript

import {FC, ReactElement} from 'react';
import {Text} from '@fluentui/react-components';
export const Section: FC<{ title: string; desc?: string, content: ReactElement }> = ({title, desc, content}) => {
return (
<div className="flex flex-col gap-5">
<div className="flex flex-col gap-1">
<Text weight="medium">{title}</Text>
{desc && <Text size={100}>{desc}</Text>}
</div>
{content}
</div>
);
};