diff options
| author | Taylor Mullen <[email protected]> | 2025-04-17 18:06:21 -0400 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-04-17 15:29:34 -0700 |
| commit | cfc697a96d2e716a75e1c3b7f0f34fce81abaf1e (patch) | |
| tree | e06bcba67ca71a874048aa887b17457dbd409bdf /packages/cli/src/ui/components/InputPrompt.tsx | |
| parent | 7928c1727f0b208ed34850cc89bbb36ea3dd23e5 (diff) | |
Run `npm run format`
- Also updated README.md accordingly.
Part of https://b.corp.google.com/issues/411384603
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 51 |
1 files changed, 23 insertions, 28 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index 92be10a4..b1832c04 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -3,37 +3,32 @@ import { Box, Text } from 'ink'; import TextInput from 'ink-text-input'; interface InputPromptProps { - query: string; - setQuery: (value: string) => void; - onSubmit: (value: string) => void; - isActive: boolean; + query: string; + setQuery: (value: string) => void; + onSubmit: (value: string) => void; + isActive: boolean; } const InputPrompt: React.FC<InputPromptProps> = ({ - query, - setQuery, - onSubmit, + query, + setQuery, + onSubmit, }) => { - return ( - <Box - marginTop={1} - borderStyle="round" - borderColor={'white'} - paddingX={1} - > - <Text color={'white'}>> </Text> - <Box flexGrow={1}> - <TextInput - value={query} - onChange={setQuery} - onSubmit={onSubmit} - showCursor={true} - focus={true} - placeholder={'Ask Gemini... (try "/init" or "/help")'} - /> - </Box> - </Box> - ); + return ( + <Box marginTop={1} borderStyle="round" borderColor={'white'} paddingX={1}> + <Text color={'white'}>> </Text> + <Box flexGrow={1}> + <TextInput + value={query} + onChange={setQuery} + onSubmit={onSubmit} + showCursor={true} + focus={true} + placeholder={'Ask Gemini... (try "/init" or "/help")'} + /> + </Box> + </Box> + ); }; -export default InputPrompt;
\ No newline at end of file +export default InputPrompt; |
