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

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

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