Documentation
Modals
Sentry Privacy

Sentry Privacy Modal

In order to view Sentry Privacy 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