'use strict';

var apiCore = require('@rss3/api-core');
var reactQuery = require('@tanstack/react-query');

function useGetTotalRequests(params, options) {
  const queryKey = ["useGetTotalRequests", params];
  const query = reactQuery.useQuery({
    queryKey,
    queryFn: () => {
      const args = Array.isArray(params) ? params : [params];
      return apiCore.getTotalRequests(...args);
    },
    ...options
  });
  return {
    ...query,
    queryKey
  };
}

exports.useGetTotalRequests = useGetTotalRequests;
//# sourceMappingURL=use-get-total-requests.cjs.map
//# sourceMappingURL=use-get-total-requests.cjs.map