mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: add SystemModelSettingModal (#127)
* feat: add the model * feat: add SystemModelSettingModal
This commit is contained in:
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user