'use strict';

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

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

exports.useGetEpoch = useGetEpoch;
//# sourceMappingURL=use-get-epoch.cjs.map
//# sourceMappingURL=use-get-epoch.cjs.map