'use strict';

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

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

exports.useGetTokenTvl = useGetTokenTvl;
//# sourceMappingURL=use-get-token-tvl.cjs.map
//# sourceMappingURL=use-get-token-tvl.cjs.map