import React, { useState, useRef } from 'react'; import { Button, Modal, Space } from 'antd'; import LlmCreateForm from './LlmCreateForm'; import { ISemantic } from '../../data'; export type CreateFormProps = { onCancel: () => void; llmItem?: ISemantic.IDatabaseItem; open: boolean; onSubmit: (values?: any) => void; }; const DatabaseSettingModal: React.FC = ({ onCancel, llmItem, open, onSubmit }) => { const [testLoading, setTestLoading] = useState(false); const createFormRef = useRef({}); const handleTestConnection = async () => { setTestLoading(true); await createFormRef.current.testLlmConnection(); setTestLoading(false); }; const renderFooter = () => { return ( <> ); }; return ( { onSubmit?.(); }} /> ); }; export default DatabaseSettingModal;