Documentation
Modals
CSB Detail

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

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