Hook to connect Smart wallet
useSmartWallet() handles connecting both the personal wallet and the Smart Wallet.
smartWallet() also need to be added in
supportedWallets prop to enable auto-connection on page load
Set up ThirdwebProvider with supportedWallets
And then use the hook in your app to connect smart wallet
EmbeddedWallet as the personal signer
You can have your users sign in with email or social and then connect their associated Smart Wallet.
LocalWallet as the personal signer
You can generate wallets on device for your users and connect to the associated Smart Wallet.
Predicting the Smart Wallet address
useSmartWallet() also returns a function to predict a smart wallet address given a personal wallet address before connecting to it.