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

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

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