Skip to main content

Import

Usage

Return Type: UseOpenConnectModalReturnType

The hook returns an object with the following properties:

Properties

setOpenConnectModal

(isOpen: boolean) => void Function to open or close the Connect modal. Parameters:

openConnectModalState

boolean The current open state of the Connect modal (true if open, false if closed).

isConnectModalOpen

boolean Current open state of the Connect modal (same value as openConnectModalState).

Notes

This hook provides methods to control the Connect modal that allows users to connect their wallets to your application. The Connect modal provides various wallet connection options including Sequence wallet and external wallets.