import { getTotalRequests } from '@rss3/api-core';
import { useQuery } from '@tanstack/react-query';

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

export { useGetTotalRequests };
//# sourceMappingURL=use-get-total-requests.js.map
//# sourceMappingURL=use-get-total-requests.js.map