ohctechv3/.svn/pristine/7c/7cb7b7f8d50ee467e24ba3b94cbb8ce06298f894.svn-base
2024-10-28 15:03:36 +05:30

17 lines
475 B
Plaintext

import * as React from 'react';
/**
* Provides information about the current step in Stepper.
*/
const StepContext = /*#__PURE__*/React.createContext({});
if (process.env.NODE_ENV !== 'production') {
StepContext.displayName = 'StepContext';
}
/**
* Returns the current StepContext or an empty object if no StepContext
* has been defined in the component tree.
*/
export function useStepContext() {
return React.useContext(StepContext);
}
export default StepContext;