Documentation
Modals
Mint New Character

Wallet Mint New Character Modal

In order to mint new character, you need to connect wallet account first.

Usage

import {
	useIsConnected,
	useWalletMintNewCharacterModal,
} from "@crossbell/connect-kit";
 
export function ClaimBtn() {
	const isWalletConnected = useIsConnected("wallet");
	const { isActive, show, hide } = useWalletMintNewCharacterModal();
 
	if (!isWalletConnected) return null;
 
	return <button onClick={show}>Mint Character</button>;
}

Return type

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