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
| Option | Type | Description |
|---|---|---|
| isActive | boolean | Indicates whether the modal is activated or not |
| show | () => void | Show modal |
| hide | () => void | Hide modal |