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

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

export { useGetStakerProfitSnapshot };
//# sourceMappingURL=use-get-staker-profit-snapshot.js.map
//# sourceMappingURL=use-get-staker-profit-snapshot.js.map