"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createUrqlClient = exports.getUrqlClient = void 0;
const urql_1 = require("urql");
let client;
function getUrqlClient(url, urqlClient) {
    if (urqlClient) {
        client = urqlClient;
    }
    else if (!client) {
        client = createUrqlClient(url);
    }
    return client;
}
exports.getUrqlClient = getUrqlClient;
function createUrqlClient(url) {
    return new urql_1.Client({
        url,
    });
}
exports.createUrqlClient = createUrqlClient;
//# sourceMappingURL=urql.js.map