"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepperContextProvider = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const StepperContext_1 = require("../StepperContext");
const StepperContextProvider = ({ children, orientation, activeStep, connector, alternativeLabel, onClickPrevStep, onClickStep, }) => {
    const contextValue = (0, react_1.useMemo)(() => ({
        activeStep,
        orientation,
        connector,
        alternativeLabel,
        onClickPrevStep,
        onClickStep,
    }), [
        activeStep,
        orientation,
        connector,
        alternativeLabel,
        onClickPrevStep,
        onClickStep,
    ]);
    return ((0, jsx_runtime_1.jsx)(StepperContext_1.StepperContext.Provider, { value: contextValue, children: children }));
};
exports.StepperContextProvider = StepperContextProvider;
