Function
getContentFieldLabel
(config: IndividualHookConfig['config'])
Source from the content-addressed store, hash-verified
| 168 | return <Text>Esc to go back</Text>; |
| 169 | } |
| 170 | function getContentFieldLabel(config: IndividualHookConfig['config']): string { |
| 171 | switch (config.type) { |
| 172 | case 'command': |
| 173 | return 'Command'; |
| 174 | case 'prompt': |
| 175 | return 'Prompt'; |
| 176 | case 'agent': |
| 177 | return 'Prompt'; |
| 178 | case 'http': |
| 179 | return 'URL'; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Get the actual content value for a hook's primary field, bypassing |
Tested by
no test coverage detected