import { Text } from 'ink' import TextInput from 'ink-text-input' import { Step } from './Step.js' type InputStep = { type: 'input' prompt: string stateKey: string } type Props = { name: string isActive?: boolean hide?: boolean color: string step: InputStep value: string placeholder: string onChange: (value: string) => void onSubmit: (value: string) => void } export const TextInputStep: React.FC = ({ step, value, placeholder, onSubmit, onChange, ...stepProps }) => { return ( {value === '' ? placeholder : value}} activeContent={} /> ) }