import { IModalManagerChildrenProps } from '@/components/modal-manager'; import { ISystemModelSettingSavingParams } from '@/hooks/llmHooks'; import { Form, Modal, Select } from 'antd'; import { useEffect } from 'react'; import { useFetchSystemModelSettingOnMount } from '../hooks'; interface IProps extends Omit { loading: boolean; onOk: ( payload: Omit, ) => void; } const SystemModelSettingModal = ({ visible, hideModal, onOk, loading, }: IProps) => { const [form] = Form.useForm(); const initialValues = useFetchSystemModelSettingOnMount(); const handleOk = async () => { const values = await form.validateFields(); onOk(values); }; useEffect(() => { form.setFieldsValue(initialValues); }, [form, initialValues]); const onFormLayoutChange = () => {}; return (
sample }]} /> sample }]} />
); }; export default SystemModelSettingModal;