summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/InputPrompt.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
-rw-r--r--packages/cli/src/ui/components/InputPrompt.tsx51
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'}>&gt; </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'}>&gt; </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;