33 |
39 |
40 | {isExpanded && (
41 |
42 | setLocalConfig({ ...localConfig, name })}
45 | rootPath={localConfig.rootPath || ''}
46 | setRootPath={(rootPath) => setLocalConfig({ ...localConfig, rootPath })}
47 | onRootPathSelect={onRootPathSelect}
48 | />
49 |
50 | )}
51 |
52 | );
53 | };
54 |
55 | export default DefineServerSection;
56 |
--------------------------------------------------------------------------------
/src/frontend/components/mcp/MCPServerManager/Modals/ServerModal/tabs/LocalServerTab/components/SectionHeader.tsx:
--------------------------------------------------------------------------------
1 | 'use client';
2 |
3 | import React from 'react';
4 |
5 | interface SectionHeaderProps {
6 | title: string;
7 | isExpanded: boolean;
8 | onToggle: () => void;
9 | status?: 'default' | 'error' | 'success' | 'warning' | 'loading';
10 | rightContent?: React.ReactNode;
11 | }
12 |
13 | const SectionHeader: React.FC