'use strict';

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

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

exports.useGetStakingStat = useGetStakingStat;
//# sourceMappingURL=use-get-staking-stat.cjs.map
//# sourceMappingURL=use-get-staking-stat.cjs.map