+ {approvals.map((a, i) => {
+ const rej = a.action === 'reject';
+ const at = (a.at || '').replace('T', ' ').slice(0, 19);
+ const gate = (t.gates && t.gates[a.gate]) || a.gate;
+ return (
+
+
+
+ {gate} · {rej ? t.rejected : t.accepted}
+
+ {t.approver} {a.actor} · {at}
+
+ {rej && a.reason ? (
+
+ {t.rejectReason}{a.reason}
+
+ ) : a.reason ? (
+
↳ {a.reason}
+ ) : null}
+
+ );
+ })}
+