import { PlusOutlined } from '@ant-design/icons'; import { Form, Input, Select, Switch, Upload } from 'antd'; import classNames from 'classnames'; import { ISegmentedContentProps } from '../interface'; import KnowledgeBaseItem from '@/components/knowledge-base-item'; import { useTranslate } from '@/hooks/common-hooks'; import styles from './index.less'; const AssistantSetting = ({ show }: ISegmentedContentProps) => { const { t } = useTranslate('chat'); const normFile = (e: any) => { if (Array.isArray(e)) { return e; } return e?.fileList; }; const uploadButtion = ( ); return (
false} showUploadList={{ showPreviewIcon: false, showRemoveIcon: false }} > {show ? uploadButtion : null}
); }; export default AssistantSetting;