'use strict';

var apiCore = require('@rss3/api-core');
var reactQuery = require('@tanstack/react-query');

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

exports.useGetChips = useGetChips;
//# sourceMappingURL=use-get-chips.cjs.map
//# sourceMappingURL=use-get-chips.cjs.map