'use strict';

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

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

exports.useGetChip = useGetChip;
//# sourceMappingURL=use-get-chip.cjs.map
//# sourceMappingURL=use-get-chip.cjs.map