RWKV-Runner/frontend/src/components/Page.tsx

13 lines
381 B
TypeScript
Raw Normal View History

2023-05-22 10:52:06 +08:00
import React, { FC, ReactElement } from 'react';
import { Divider, Text } from '@fluentui/react-components';
2023-05-15 21:55:57 +08:00
2023-05-22 10:52:06 +08:00
export const Page: FC<{ title: string; content: ReactElement }> = ({ title, content }) => {
2023-05-15 21:55:57 +08:00
return (
<div className="flex flex-col gap-2 p-2 h-full">
<Text size={600}>{title}</Text>
2023-05-22 10:52:06 +08:00
<Divider style={{ flexGrow: 0 }} />
2023-05-15 21:55:57 +08:00
{content}
</div>
);
};