import { Text } from 'ink' import { SelectInput } from './SelectInput.js' import { Step } from './Step.js' type Choice = { label: string value: string } type MultipleChoice = { type: 'multiple-choice' prompt: string stateKey: string choices: Record } type Props = { name: string isActive?: boolean hide?: boolean color: string multipleChoice: MultipleChoice selectedChoice: string onSelect: (value: string) => void } export const MultipleChoiceStep: React.FC = ({ multipleChoice, selectedChoice, onSelect, ...stepProps }) => { return ( {multipleChoice.choices[selectedChoice]?.label}} activeContent={ { onSelect(choice.value) }} /> } /> ) }