CommitmentDetailHeader exposes quick actions beside the commitment id so users can preserve the full identifier or inspect it externally without leaving the detail context.
Copy IDwrites the fullcommitmentIdprop to the clipboard.- A transient
Copiedstatus confirms a successful copy. - If
navigator.clipboard.writeTextis unavailable or fails, the component showsClipboard unavailableinstead of throwing. Explorerlinks are built withbuildExplorerUrl('contract', commitmentId, explorerNetwork).- Invalid or unsupported identifiers render a disabled
Explorer unavailablecontrol rather than an unsafe URL.
<CommitmentDetailHeader
commitmentId={commitmentId}
statusLabel="Active"
statusVariant="active"
explorerNetwork="testnet"
onBack={handleBack}
onShare={handleShare}
/>explorerNetwork is optional and defaults to public. Use testnet when the commitment id refers to a testnet contract.
- Both actions are keyboard focusable when available.
- The copy action has an explicit accessible name.
- Copy outcomes are announced through a polite status region.
- External explorer links use
target="_blank"withrel="noopener noreferrer".