(value: string)
| 8 | interface Props extends BrowserConfigProps { service: ConfigService; onClose: () => void; embedded?: boolean; active?: boolean } |
| 9 | const displayValue = (value: string | null) => value === null ? 'Automatic' : value === 'true' ? 'On' : value === 'false' ? 'Off' : value || '(empty)'; |
| 10 | const title = (value: string) => value.replace(/[_-]/g, ' ').replace(/^./, char => char.toUpperCase()); |
| 11 | const 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 | |
| 13 | function SettingRow({ setting, draft, changed, onChange, disabled }: { setting: ConfigSetting; draft?: string | null; changed: boolean; onChange: (value: string | null) => void; disabled: boolean }) { |
no outgoing calls
no test coverage detected