UNPKG

@activecollab/components

Version:

ActiveCollab Components

17 lines 655 B
import React, { createContext, useContext } from "react"; const ContentStepperContext = /*#__PURE__*/createContext(undefined); export const ContentStepperContextProvider = _ref => { let children = _ref.children, value = _ref.value; return /*#__PURE__*/React.createElement(ContentStepperContext.Provider, { value: value }, children); }; export const useContentStepperContext = () => { const context = useContext(ContentStepperContext); if (context === undefined) { throw new Error("useContentWizardContext must be used within a ContentWizardContextProvider"); } return context; }; //# sourceMappingURL=ContentStepperContext.js.map