{
void selectConversation(conversation.id).then(
() => {
onAfterSelect?.()
},
() => {},
)
}}
>
{conversation.customerName ||
t("conversation.customerFallback", {
id: conversation.customerId || conversation.id,
})}
{conversation.agentUnreadCount > 0 ? (
{conversation.agentUnreadCount > 99
? "99+"
: conversation.agentUnreadCount}
) : null}
{conversation.lastMessageAt
? formatDateTime(conversation.lastMessageAt)
: t("conversation.noTime")}
{conversation.lastMessageSummary || t("conversation.noLatestMessage")}
{getConversationStatusLabel(conversation.status, t)}
{conversation.status === IMConversationStatus.Pending &&
conversation.currentTeamName ? (
{t("conversation.teamOnDuty", {
name: conversation.currentTeamName,
})}
) : null}