import React from 'react'; import { Box, Text } from 'ink'; import { colors } from '../../../theme.js'; import type { WizardStepProps } from '../types.js'; type Props = Pick< WizardStepProps, 'template' | 'actionIdentifier' | 'roleIdentifier' | 'actionName' >; export function InfoStep({ template, actionIdentifier, roleIdentifier, actionName, }: Props): React.ReactElement { const action = template?.actions?.[actionIdentifier]; const role = action?.roles?.[roleIdentifier]; return ( Action: {actionName} {action?.description || 'No description'} Your Role: {roleIdentifier} {role?.requirements && ( Requirements: {role.requirements.variables?.map((v) => ( {' '}• Variable: {v} ))} {role.requirements.slots && ( {' '}• Slots: {role.requirements.slots.min} min (UTXO selection required) )} )} ); }