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

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

export { useGetNodeAvatarSvg };
//# sourceMappingURL=use-get-node-avatar-svg.js.map
//# sourceMappingURL=use-get-node-avatar-svg.js.map