Docs

useSetIsWalletModalOpen

Open or close the ConnectWallet Modal

Example

const setIsWalletModalOpen = useSetIsWalletModalOpen();
function openModal() {
setIsWalletModalOpen(true);
}
function closeModal() {
setIsWalletModalOpen(false);
}
return (
<div>
<button onClick={openModal}>Open Modal</button>
<button onClick={closeModal}>Close Modal</button>
</div>
);

Returns

Function to open or close the modal