MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / renderInputGuide

Function renderInputGuide

source code/components/ExportDialog.tsx:102–113  ·  view source on GitHub ↗
(exitState: ExitState)

Source from the content-addressed store, hash-verified

100
101 // Custom input guide that changes based on dialog state
102 function renderInputGuide(exitState: ExitState): React.ReactNode {
103 if (showFilenameInput) {
104 return <Byline>
105 <KeyboardShortcutHint shortcut="Enter" action="save" />
106 <ConfigurableShortcutHint action="confirm:no" context="Confirmation" fallback="Esc" description="go back" />
107 </Byline>;
108 }
109 if (exitState.pending) {
110 return <Text>Press {exitState.keyName} again to exit</Text>;
111 }
112 return <ConfigurableShortcutHint action="confirm:no" context="Confirmation" fallback="Esc" description="cancel" />;
113 }
114
115 // Use Settings context so 'n' key doesn't cancel (allows typing 'n' in filename input)
116 useKeybinding('confirm:no', handleCancel, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected