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

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

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