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
Option | Type | Description |
---|---|---|
isActive | boolean | Indicates whether the modal is activated or not |
show | () => void | Show modal |
hide | () => void | Hide modal |