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

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

export { useGetChipSvgURL };
//# sourceMappingURL=use-get-chip-svg-url.js.map
//# sourceMappingURL=use-get-chip-svg-url.js.map