"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useServerHealth = void 0;
var serverTypes_1 = require("../gql/serverTypes");
var useError_1 = require("./useError");
var useServerHealth = function () {
    var query = (0, serverTypes_1.useServerHealthQuery)({
        context: { server: true },
        pollInterval: 10000,
    });
    var error = query.error;
    (0, useError_1.useError)(error);
    return query;
};
exports.useServerHealth = useServerHealth;
//# sourceMappingURL=useServerHealth.js.map