+ {/* Order fields */}
+
+
ORDER ACCOUNT · solisting
+
#{String(od.orderId)}
+
router.push(`/listing/${od.listing}`)} onCopy={() => navigator.clipboard.writeText(od.listing)} />
+
navigator.clipboard.writeText(od.buyer)} />
+
{fmtSol(od.amount)}
+
#{String(od.escrowId)}
+
navigator.clipboard.writeText(od.escrowAccount)} />
+
+
+ {/* Escrow fields */}
+
+
ESCROW ACCOUNT · descro
+ {!ed
+ ?
Could not load escrow account.
+ : <>
+
{stateLabel}
+
navigator.clipboard.writeText(ed.seller)} />
+
navigator.clipboard.writeText(ed.buyer)} />
+
{fmtSol(ed.amount)}
+ {isSome(ed.disputeResolver) && (() => {
+ const resolverAddr = ed.disputeResolver.value
+ return (
+
+ router.push(`/resolver/${resolverAddr}`)}
+ onCopy={() => navigator.clipboard.writeText(resolverAddr)}
+ />
+
+ )
+ })()}
+ >
+ }
+
+
+
AVAILABLE INSTRUCTIONS
+ {!walletAddress &&
Connect a wallet to act on this order.
}
+ {walletAddress && (
+
+ {isSeller && stateEnum === EscrowState.AwaitingSellerConfirm && onAccept && }
+ {isSeller && stateEnum === EscrowState.AwaitingSellerConfirm && onReject && }
+ {isBuyer && stateEnum === EscrowState.AwaitingSellerConfirm && onCancel && }
+ {isBuyer && stateEnum === EscrowState.Active && onComplete && }
+ {(isSeller || isBuyer) && stateEnum === EscrowState.Active && onDispute && }
+ {(stateEnum === EscrowState.Complete || stateEnum === EscrowState.Cancelled) && onCloseStale && }
+
+ )}
+