'use strict';

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

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

exports.useGetAllNodes = useGetAllNodes;
//# sourceMappingURL=use-get-all-nodes.cjs.map
//# sourceMappingURL=use-get-all-nodes.cjs.map