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

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

export { useGetStakingProfit };
//# sourceMappingURL=use-get-staking-profit.js.map
//# sourceMappingURL=use-get-staking-profit.js.map