{negotiations.map((negotiation) => {
const listing = listingOf(negotiation);
const role = buyerIdOf(negotiation) === currentUserId ? "buyer" : "seller";
const theirProposal =
(role === "buyer" && negotiation.proposedBy === "seller") ||
(role === "seller" && negotiation.proposedBy === "buyer");
const quantity = negotiation.quantity ?? listing?.quantity ?? 1;
return (
{assetNameOf(listing)}
{role === "buyer" ? "Buying" : "Selling"}
{fmt(negotiation.amount ?? 0)} each · {quantity}× ·{" "}
{theirProposal ? "their offer" : "your offer"}
);
})}