mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-19 16:56:12 +01:00
* feat: Enhance accessibility and localization for empty states in prompts, bookmarks, and memories * feat: Improve accessibility and layout for icon upload component * fix: Update dialog content width for improved accessibility
31 lines
933 B
TypeScript
31 lines
933 B
TypeScript
import { FormProvider } from 'react-hook-form';
|
|
import ConnectionSection from './sections/ConnectionSection';
|
|
import BasicInfoSection from './sections/BasicInfoSection';
|
|
import TransportSection from './sections/TransportSection';
|
|
import AuthSection from './sections/AuthSection';
|
|
import TrustSection from './sections/TrustSection';
|
|
import type { useMCPServerForm } from './hooks/useMCPServerForm';
|
|
|
|
interface MCPServerFormProps {
|
|
formHook: ReturnType<typeof useMCPServerForm>;
|
|
}
|
|
|
|
export default function MCPServerForm({ formHook }: MCPServerFormProps) {
|
|
const { methods, isEditMode, server } = formHook;
|
|
|
|
return (
|
|
<FormProvider {...methods}>
|
|
<div className="space-y-4 px-1 py-1">
|
|
<BasicInfoSection />
|
|
|
|
<ConnectionSection />
|
|
|
|
<TransportSection />
|
|
|
|
<AuthSection isEditMode={isEditMode} serverName={server?.serverName} />
|
|
|
|
<TrustSection />
|
|
</div>
|
|
</FormProvider>
|
|
);
|
|
}
|