import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useDeployCreate2WizardStore } from './deployCreate2WizardStore.js';
import { Box, Text } from 'ink';
import { TextInput } from '@inkjs/ui';
export const ConfigureSalt = () => {
    const { wizardState, submitConfigureSalt } = useDeployCreate2WizardStore();
    if (wizardState.stepId !== 'configure-salt') {
        throw new Error('Invalid state');
    }
    return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { children: _jsx(Text, { children: "Enter a salt value (press Enter to confirm):" }) }), _jsx(TextInput, { onSubmit: salt => submitConfigureSalt({ salt }), defaultValue: 'ethers phoenix' })] }));
};
