"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.basicMockedFeatureFlagsProviderWrapper = exports.makeMockedFeatureFlagsProviderWrapper = exports.makeMockedContextValue = void 0;
const react_1 = __importDefault(require("react"));
const FeatureFlagsContext_1 = require("./FeatureFlagsContext");
function makeMockedContextValue(mockedFeatures) {
    return {
        isFeature: () => true,
        getFeature: (featureId) => mockedFeatures[featureId] || null,
        overrideFeature: () => { },
        resetFeature: () => { },
        resetFeatures: () => { },
    };
}
exports.makeMockedContextValue = makeMockedContextValue;
function makeMockedFeatureFlagsProviderWrapper(mockedContextValue) {
    const MockedFeatureProviderWrapper = ({ children, }) => react_1.default.createElement(FeatureFlagsContext_1.FeatureFlagsProvider, { value: mockedContextValue }, children);
    return MockedFeatureProviderWrapper;
}
exports.makeMockedFeatureFlagsProviderWrapper = makeMockedFeatureFlagsProviderWrapper;
exports.basicMockedFeatureFlagsProviderWrapper = makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue({}));
//# sourceMappingURL=mock.js.map