move files

This commit is contained in:
josc146
2023-05-07 21:27:13 +08:00
parent 0e852daf43
commit d46a18425b
12 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
import {FC, ReactElement} from 'react';
import {Card, Text} from '@fluentui/react-components';
export const Section: FC<{
title: string; desc?: string, content: ReactElement, outline?: boolean
}> =
({title, desc, content, outline = true}) => {
return (
<Card size="small" appearance={outline ? 'outline' : 'subtle'}>
<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>
</div>
<div className="overflow-y-auto overflow-x-hidden p-1">
{content}
</div>
</Card>
);
};