{!compact && ( )} {!compact && ( {message.username || message.user_id} {formatTimeAgo(message.created_at)} {message.edited_at && ( edited )} {message.deleted_at && ( deleted )} {aiStatus === "clean" && ( )} {aiStatus === "flagged" && ( )} {aiStatus === "error" && ( )} {aiStatus} {message.ai_severity && message.ai_severity !== "none" && ( {message.ai_severity} )} {confidence != null && ( {Math.round(confidence * 100)}% )} )} {displayContent ? ( {renderContentWithCustomEmojis(displayContent)} ) : null} {stickers.length > 0 && ( {stickers.map((sticker) => ( {sticker.url ? ( ) : ( )} {sticker.name} ))} )} {hasImages && ( {imageAttachments.slice(0, 4).map((img) => ( ))} {imageAttachments.length > 4 && ( +{imageAttachments.length - 4}{" "} )} )} {categories.length > 0 && ( {categories.map((category) => ( {category} ))} )} {message.ai_analysis ? ( setShowAnalysis(!showAnalysis)} className="flex w-full items-center justify-between gap-2 text-left text-xs" > {aiStatus === "flagged" ? "🚨 " : "ℹ️ "} {analysisSummary} {showAnalysis ? ( ) : ( )} {showAnalysis && ( {message.ai_analysis} )} ) : null} {message.ai_error ? ( AI error: {message.ai_error} ) : null} {isReanalyzing ? "Reanalyzing..." : "Re-analyze"} {aiStatus === "error" && ( Click to retry analysis )}