"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const reactClient = require("@contember/react-client");
const useMutation = require("./useMutation.cjs");
const useQuery = require("./useQuery.cjs");
const useAuthedTenantQuery = (query, variables) => {
  const client = reactClient.useTenantGraphQlClient();
  return useQuery.useQuery(client, query, variables);
};
const useAuthedTenantMutation = (query) => {
  const client = reactClient.useTenantGraphQlClient();
  return useMutation.useMutation(client, query);
};
const useAuthedContentQuery = (query, variables) => {
  const client = reactClient.useCurrentContentGraphQlClient();
  return useQuery.useQuery(client, query, variables);
};
const useAuthedContentMutation = (query) => {
  const client = reactClient.useCurrentContentGraphQlClient();
  return useMutation.useMutation(client, query);
};
exports.useAuthedContentMutation = useAuthedContentMutation;
exports.useAuthedContentQuery = useAuthedContentQuery;
exports.useAuthedTenantMutation = useAuthedTenantMutation;
exports.useAuthedTenantQuery = useAuthedTenantQuery;
//# sourceMappingURL=auth.cjs.map
