import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Step, StepButton, StepLabel, Stepper } from '../Stepper';
import { useLogic } from './useLogic';
/**
 * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`.
 */
export const StepperWizard = (props) => {
    const { clickableSteps, normalSteps, getStepButtonProps, getStepLabelProps } = useLogic(props);
    const { steps, onClickPrevStep, ...stepperProps } = props;
    return (_jsxs(Stepper, { ...stepperProps, children: [clickableSteps.map(({ label, isError }, index) => (_jsx(Step, { children: _jsx(StepButton, { error: isError, ...getStepButtonProps(index), children: label }) }, index))), normalSteps.map(({ label, isError }, index) => (_jsx(Step, { children: _jsx(StepLabel, { error: isError, ...getStepLabelProps(index), children: label }) }, index)))] }));
};
