"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApolloConsumer = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const invariant_1 = require("@apollo/client/utilities/invariant");
const ApolloContext_js_1 = require("./ApolloContext.cjs");
const ApolloConsumer = (props) => {
    const ApolloContext = (0, ApolloContext_js_1.getApolloContext)();
    return (React.createElement(ApolloContext.Consumer, null, (context) => {
        (0, invariant_1.invariant)(context && context.client, 40);
        return props.children(context.client);
    }));
};
exports.ApolloConsumer = ApolloConsumer;
//# sourceMappingURL=ApolloConsumer.cjs.map
