Modal Hooks
Programmatically open modals via Hooks
The following Hooks are provided to allow the programmatic opening of modals anywhere in your application.
useConnectModal
useAccountModal
useChainModal
Each of these Hooks returns an object with a function for opening its respective modal. Note that the returned functions will be undefined if your application is not in the required state for the modal to be open.