Documentation
Modals
OP Sign Settings

Operator Sign Settings Modal

In order to display the op-sign settings modal, you need to connect wallet account first

Usage

import {
	useIsConnected,
	useAccountCharacter,
	useOpSignSettingsModal,
} from "@crossbell/connect-kit";
 
export function OpSignSettingsBtn() {
	const isWalletConnected = useIsConnected("wallet");
	const character = useAccountCharacter();
	const { isActive, show, hide } = useOpSignSettingsModal();
 
	if (!isWalletConnected || !character) return null;
 
	return (
		<button
			onClick={() => {
				if (character) {
					show(character);
				}
			}}
		>
			Operator Sign Settings
		</button>
	);
}

Return type

OptionTypeDescription
isActivebooleanIndicates whether the modal is activated or not
show(params: { characterId: number }) => voidShow character-specific modal
hide() => voidHide modal