useConnectionStatus
Hook for checking whether your app is connected to a wallet or not.
The wallet connection status
It can be one of the following:
unknown
: connection status is not known yet. This is the initial state.connecting
: wallet is being connected. Either because of a user action, or when the wallet is auto-connecting on page load.connected
: the wallet is connected and ready to be used.disconnected
: the wallet is not connected.