"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useNewFeatureSupportLevel = exports.NewFeatureSupportLevelContextProvider = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const NewFeatureSupportLevelContext = react_1.default.createContext(null);
const NewFeatureSupportLevelContextProvider = ({ value, children }) => {
    return (react_1.default.createElement(NewFeatureSupportLevelContext.Provider, { value: value }, children));
};
exports.NewFeatureSupportLevelContextProvider = NewFeatureSupportLevelContextProvider;
const useNewFeatureSupportLevel = () => {
    const context = react_1.default.useContext(NewFeatureSupportLevelContext);
    if (!context) {
        throw new Error('useNewFeatureSupportLevel must be used within NewFeatureSupportLevelContextProvider.');
    }
    return context;
};
exports.useNewFeatureSupportLevel = useNewFeatureSupportLevel;
//# sourceMappingURL=NewFeatureSupportLevelContext.js.map