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

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

export { useGetChips };
//# sourceMappingURL=use-get-chips.js.map
//# sourceMappingURL=use-get-chips.js.map