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

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

export { useGetEpochsApySnapshot };
//# sourceMappingURL=use-get-epochs-apy-snapshot.js.map
//# sourceMappingURL=use-get-epochs-apy-snapshot.js.map