{acoes.map((a, i) => {
const est = PDD_ESTADOS[a.estado];
return (
onAbrirAcao && onAbrirAcao(a.evento)}
style={{ padding: '14px 24px', cursor: onAbrirAcao ? 'pointer' : 'default',
borderBottom: i < acoes.length - 1 ? '1px solid ' + DS.colors.border : 'none',
transition: 'background 0.1s' }}
onMouseEnter={e => e.currentTarget.style.background = '#F8FAFC'}
onMouseLeave={e => e.currentTarget.style.background = 'transparent'}>
{est.emoji}
{a.evento.name}
{a.evento.client_name && (
· {a.evento.client_name}
)}
{est.rotulo}
{a.evento.event_time || '—'}
{a.encerrados > 0 &&
}
{a.ausentes > 0 &&
}
{a.recusas > 0 &&
}
{a.alertas.length > 0 && (
{a.alertas.slice(0, 4).map((al, j) => (
{al.texto}
{al.detalhe && (
{al.detalhe}
)}
))}
{a.alertas.length > 4 && (
+ {a.alertas.length - 4} alerta(s) — abra a ação para ver
)}
)}