(key: string)
| 17 | |
| 18 | // Define a type-safe helper function to get config values |
| 19 | const getConfigValue = (key: string): string => { |
| 20 | for (const config of props.configData) { |
| 21 | if (config.key === key) { |
| 22 | return config.value |
| 23 | } |
| 24 | } |
| 25 | return `` |
| 26 | } |
| 27 | |
| 28 | // Define a helper function to update config values |
| 29 | const setConfigValue = (key: string, value: string): void => { |