'use strict';

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

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

exports.useGetStakingTransactions = useGetStakingTransactions;
//# sourceMappingURL=use-get-staking-transactions.cjs.map
//# sourceMappingURL=use-get-staking-transactions.cjs.map