Documentation
Modals
Upgrade Email Account

Upgrade Email Account Modal

In order to display the upgrade modal, you need to connect email account first

Usage

import {
	useIsConnected,
	useUpgradeEmailAccountModal,
} from "@crossbell/connect-kit";
 
export function ConnectBtn() {
	const isEmailConnected = useIsConnected("email");
	const { isActive, show, hide } = useUpgradeEmailAccountModal();
 
	return isEmailConnected ? (
		<button onClick={show}>Upgrade Account</button>
	) : null;
}

Return type

OptionTypeDescription
isActivebooleanIndicates whether the modal is activated or not
show() => voidShow modal
hide() => voidHide modal