CSB Detail Modal
In order to view CSB Detail Modal, you need to connect account first.
Usage
import { useIsConnected, useCsbDetailModal } from "@crossbell/connect-kit";
export function CSBDetailBtn() {
const isConnected = useIsConnected();
const { isActive, show, hide } = useCsbDetailModal();
if (!isConnected) return null;
return <button onClick={show}>CSB Detail</button>;
}
Return type
Option | Type | Description |
---|---|---|
isActive | boolean | Indicates whether the modal is activated or not |
show | () => void | Show modal |
hide | () => void | Hide modal |