'use strict';

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

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

exports.useGetNodeAvatarSvg = useGetNodeAvatarSvg;
//# sourceMappingURL=use-get-node-avatar-svg.cjs.map
//# sourceMappingURL=use-get-node-avatar-svg.cjs.map