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

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

export { useGetTokenSupply };
//# sourceMappingURL=use-get-token-supply.js.map
//# sourceMappingURL=use-get-token-supply.js.map