import * as React from 'react' import { Box, Text, stringWidth } from '@anthropic/ink' import TextInput from '../TextInput.js' type Props = { value: string onChange: (value: string) => void historyFailedMatch: boolean } function HistorySearchInput({ value, onChange, historyFailedMatch, }: Props): React.ReactNode { return ( {historyFailedMatch ? 'no matching prompt:' : 'search prompts:'} {}} columns={stringWidth(value) + 1} focus={true} showCursor={true} multiline={false} dimColor={true} /> ) } export default HistorySearchInput