import { useFetchKnowledgeList } from '@/hooks/knowledgeHook'; import { PlusOutlined } from '@ant-design/icons'; import { Form, Input, Select, Upload } from 'antd'; import classNames from 'classnames'; import { ISegmentedContentProps } from '../interface'; import styles from './index.less'; const AssistantSetting = ({ show }: ISegmentedContentProps) => { const { list: knowledgeList } = useFetchKnowledgeList(true); const knowledgeOptions = knowledgeList.map((x) => ({ label: x.name, value: x.id, })); const normFile = (e: any) => { if (Array.isArray(e)) { return e; } return e?.fileList; }; return (
); }; export default AssistantSetting;