"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepperWizard = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const Stepper_1 = require("../Stepper");
const useLogic_1 = require("./useLogic");
/**
 * @deprecated Причина отказа от поддержки: Отказ от MUI. Используйте компонент `NewStepper`.
 */
const StepperWizard = (props) => {
    const { clickableSteps, normalSteps, getStepButtonProps, getStepLabelProps } = (0, useLogic_1.useLogic)(props);
    const { steps, onClickPrevStep, ...stepperProps } = props;
    return ((0, jsx_runtime_1.jsxs)(Stepper_1.Stepper, { ...stepperProps, children: [clickableSteps.map(({ label, isError }, index) => ((0, jsx_runtime_1.jsx)(Stepper_1.Step, { children: (0, jsx_runtime_1.jsx)(Stepper_1.StepButton, { error: isError, ...getStepButtonProps(index), children: label }) }, index))), normalSteps.map(({ label, isError }, index) => ((0, jsx_runtime_1.jsx)(Stepper_1.Step, { children: (0, jsx_runtime_1.jsx)(Stepper_1.StepLabel, { error: isError, ...getStepLabelProps(index), children: label }) }, index)))] }));
};
exports.StepperWizard = StepperWizard;
