@openshift-assisted/ui-lib
Version:
React component library for the Assisted Installer UI
16 lines • 655 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDay2WizardContext = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const Day2WizardContext = react_1.default.createContext(null);
const useDay2WizardContext = () => {
const context = react_1.default.useContext(Day2WizardContext);
if (!context) {
throw new Error('useDay2WizardContext must be used within Day2WizardContextProvider');
}
return context;
};
exports.useDay2WizardContext = useDay2WizardContext;
exports.default = Day2WizardContext;
//# sourceMappingURL=Day2WizardContext.js.map