import { createContext, useContext } from "react";
/**
 * Context used for injecting the feature flagging implementation logic.
 *
 * @dev do not export this, it should be accessed exclusively through
 * useFeatureFlags and FeatureFlagsProvider
 */
const FeatureFlagsContext = createContext({
    isFeature: _ => false,
    getFeature: _ => null,
    overrideFeature: _ => { },
    resetFeature: _ => { },
    resetFeatures: () => { },
});
export const FeatureFlagsProvider = FeatureFlagsContext.Provider;
/**
 * Hook to consume a FeatureFlagsContext
 */
export function useFeatureFlags() {
    return useContext(FeatureFlagsContext);
}
//# sourceMappingURL=FeatureFlagsContext.js.map