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
Option | Type | Description |
---|---|---|
isActive | boolean | Indicates whether the modal is activated or not |
show | (params: { characterId: number }) => void | Show character-specific modal |
hide | () => void | Hide modal |