MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getContentFieldLabel

Function getContentFieldLabel

src/components/hooks/ViewHookMode.tsx:170–181  ·  view source on GitHub ↗
(config: IndividualHookConfig['config'])

Source from the content-addressed store, hash-verified

168 return <Text>Esc to go back</Text>;
169}
170function 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

Callers 1

ViewHookModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected