"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.client = exports.getClient = void 0;
const graphql_hooks_1 = require("graphql-hooks");
const config_1 = __importDefault(require("./config"));
const client = new graphql_hooks_1.GraphQLClient({
    url: `${config_1.default.apiBase}/graphql`,
});
exports.client = client;
const getClient = (url) => new graphql_hooks_1.GraphQLClient({
    url: `${url || config_1.default.apiBase}/graphql`,
});
exports.getClient = getClient;
//# sourceMappingURL=graphqlClient.js.map