'use strict';

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

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

exports.useGetStakingProfit = useGetStakingProfit;
//# sourceMappingURL=use-get-staking-profit.cjs.map
//# sourceMappingURL=use-get-staking-profit.cjs.map