update
This commit is contained in:
12
frontend/src/components/Page.tsx
Normal file
12
frontend/src/components/Page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import React, {FC, ReactElement} from 'react';
|
||||
import {Divider, Text} from '@fluentui/react-components';
|
||||
|
||||
export const Page: FC<{ title: string; content: ReactElement }> = ({title, content = true}) => {
|
||||
return (
|
||||
<div className="flex flex-col gap-2 p-2 h-full">
|
||||
<Text size={600}>{title}</Text>
|
||||
<Divider style={{flexGrow: 0}}/>
|
||||
{content}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user