MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / title

Function title

graph-ui/src/settings/ConfigPanel.tsx:10–10  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

8interface Props extends BrowserConfigProps { service: ConfigService; onClose: () => void; embedded?: boolean; active?: boolean }
9const displayValue = (value: string | null) => value === null ? 'Automatic' : value === 'true' ? 'On' : value === 'false' ? 'Off' : value || '(empty)';
10const title = (value: string) => value.replace(/[_-]/g, ' ').replace(/^./, char => char.toUpperCase());
11const timing = (value: string) => ({ restart: 'Process restart', 'next-session': 'Next session', 'next-request': 'Next request', live: 'Immediate', startup: 'After restart', 'next-index': 'Next index' }[value] ?? title(value));
12
13function SettingRow({ setting, draft, changed, onChange, disabled }: { setting: ConfigSetting; draft?: string | null; changed: boolean; onChange: (value: string | null) => void; disabled: boolean }) {

Callers 3

timingFunction · 0.85
SettingRowFunction · 0.85
ConfigPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected