feat: add SystemModelSettingModal (#127)

* feat: add the model

* feat: add SystemModelSettingModal
This commit is contained in:
balibabu
2024-03-15 19:35:59 +08:00
committed by GitHub
parent 2447f95629
commit a0f1e1fa95
10 changed files with 311 additions and 66 deletions

View File

@ -1,18 +1,33 @@
import { Typography } from 'antd';
import { SettingOutlined } from '@ant-design/icons';
import { Button, Flex, Typography } from 'antd';
const { Title, Paragraph } = Typography;
interface IProps {
title: string;
description: string;
showRightButton?: boolean;
clickButton?: () => void;
}
const SettingTitle = ({ title, description }: IProps) => {
const SettingTitle = ({
title,
description,
clickButton,
showRightButton = false,
}: IProps) => {
return (
<div>
<Title level={5}>{title}</Title>
<Paragraph>{description}</Paragraph>
</div>
<Flex align="center" justify={'space-between'}>
<div>
<Title level={5}>{title}</Title>
<Paragraph>{description}</Paragraph>
</div>
{showRightButton && (
<Button type={'primary'} onClick={clickButton}>
<SettingOutlined></SettingOutlined> System Model Settings
</Button>
)}
</Flex>
);
};