'use strict';

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

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

exports.useGetStakerProfitSnapshot = useGetStakerProfitSnapshot;
//# sourceMappingURL=use-get-staker-profit-snapshot.cjs.map
//# sourceMappingURL=use-get-staker-profit-snapshot.cjs.map