import { getNode } from '@rss3/api-core';
import { useQuery } from '@tanstack/react-query';

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

export { useGetNode };
//# sourceMappingURL=use-get-node.js.map
//# sourceMappingURL=use-get-node.js.map