import { jsx as _jsx } from "react/jsx-runtime";
/**
 * @license
 * Copyright 2026 HopCode Team
 * SPDX-License-Identifier: Apache-2.0
 */
import { Box } from 'ink';
import { RadioButtonSelect } from '../../shared/RadioButtonSelect.js';
import { t } from '../../../../i18n/index.js';
const generationOptions = [
    {
        get label() {
            return t('Generate with HopCode (Recommended)');
        },
        value: 'qwen',
    },
    {
        get label() {
            return t('Manual Creation');
        },
        value: 'manual',
    },
];
/**
 * Step 2: Generation method selection.
 */
export function GenerationMethodSelector({ state, dispatch, onNext, onPrevious: _onPrevious, }) {
    const handleSelect = (selectedValue) => {
        const method = selectedValue;
        dispatch({ type: 'SET_GENERATION_METHOD', method });
        onNext();
    };
    return (_jsx(Box, { flexDirection: "column", children: _jsx(RadioButtonSelect, { items: generationOptions.map((option) => ({
                key: option.value,
                label: option.label,
                value: option.value,
            })), initialIndex: generationOptions.findIndex((opt) => opt.value === state.generationMethod), onSelect: handleSelect, isFocused: true }) }));
}
//# sourceMappingURL=GenerationMethodSelector.js.map