'use strict';

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

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

exports.useGetEpochs = useGetEpochs;
//# sourceMappingURL=use-get-epochs.cjs.map
//# sourceMappingURL=use-get-epochs.cjs.map