import { jsx as _jsx } from "react/jsx-runtime";
import { useMemo } from 'react';
import { StepperContext } from '../StepperContext';
export const StepperContextProvider = ({ children, orientation, activeStep, connector, alternativeLabel, onClickPrevStep, onClickStep, }) => {
    const contextValue = useMemo(() => ({
        activeStep,
        orientation,
        connector,
        alternativeLabel,
        onClickPrevStep,
        onClickStep,
    }), [
        activeStep,
        orientation,
        connector,
        alternativeLabel,
        onClickPrevStep,
        onClickStep,
    ]);
    return (_jsx(StepperContext.Provider, { value: contextValue, children: children }));
};
