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

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

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