'use strict';

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

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

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