use the useWalletConnect hook instead
useWalletConnect
type ReturnType = (options?: { chainId?: number; }) => Promise<WalletConnect>;