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

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

export { useGetStakingStat };
//# sourceMappingURL=use-get-staking-stat.js.map
//# sourceMappingURL=use-get-staking-stat.js.map