Hook for connecting a wallet to your app.
The wallet also needs to be added in
supportedWallets prop to enable auto-connection on page load.
A function to connect a wallet
The function accepts two arguments:
The wallet to connect. Must be of type
connectOptions object depends on the wallet you are connecting. For some wallets, it may be optional
If you are using typescript,
connect will automatically infer the type of
connectOptions based on the
walletConfig you pass in as the first argument and will show type errors if you pass in invalid options.