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

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

export { useGetTokenTvl };
//# sourceMappingURL=use-get-token-tvl.js.map
//# sourceMappingURL=use-get-token-tvl.js.map