(key: keyof AppConfig, value: any)
| 157 | }; |
| 158 | |
| 159 | const update = (key: keyof AppConfig, value: any) => { |
| 160 | if (!config) return; |
| 161 | const newConfig = { ...config, [key]: value }; |
| 162 | setConfig(newConfig); |
| 163 | saveConfigToBackend(newConfig); |
| 164 | }; |
| 165 | |
| 166 | if (!config) { |
| 167 | return ( |
no test coverage detected