Documentation
xSettings

xSettings Modal

In order to open xSettings modal, you need to connect account first.

Usage

import { useIsConnected, useXSettingsModal } from "@crossbell/connect-kit";
 
export function XSettingsBtn() {
	const isConnected = useIsConnected();
	const { isActive, show, hide } = useXSettingsModal();
 
	if (!isConnected) return null;
 
	return <button onClick={show}>xSettings</button>;
}

Return type

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