How can I read disconnect event when connecting wallet with dappkit

Using dapp-kit how can I capture the disconnect event when using the ConnectButton component?

Hey @tahlil do you have a disconnect button in your Dapp or what you are trying to do is to track disconnect from the wallet?

You will need to provide your users an option to disconnect from their active wallet by using the useDisconnect hook from dApp kit. Once you do that, you can then create your own hook that reads that state and gets feedback for it.

Docs: useDisconnectWallet | Sui TypeScript Docs