'use strict';

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

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

exports.useGetNodeRewards = useGetNodeRewards;
//# sourceMappingURL=use-get-node-rewards.cjs.map
//# sourceMappingURL=use-get-node-rewards.cjs.map