'use strict';

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

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

exports.useGetNodeEvents = useGetNodeEvents;
//# sourceMappingURL=use-get-node-events.cjs.map
//# sourceMappingURL=use-get-node-events.cjs.map