'use strict';

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

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

exports.useGetStakings = useGetStakings;
//# sourceMappingURL=use-get-stakings.cjs.map
//# sourceMappingURL=use-get-stakings.cjs.map