import * as React from "react";
import { invariant } from "@apollo/client/utilities/invariant";
import { getApolloContext } from "./ApolloContext.js";
export const ApolloConsumer = (props) => {
    const ApolloContext = getApolloContext();
    return (React.createElement(ApolloContext.Consumer, null, (context) => {
        invariant(context && context.client, 37);
        return props.children(context.client);
    }));
};
//# sourceMappingURL=ApolloConsumer.js.map
