MessageTranslatedLabel

fun MessageTranslatedLabel(messageItem: MessageItemState, onToggleOriginalText: () -> Unit = {})

A composable function that displays a label indicating that a message has been translated.

This label is primarily shown next to messages in channels when the message's original language is different from the current user's selected language, and the auto-translation feature is enabled.

Parameters

messageItem

The state of the message item which contains details about the message, the original language, and the user's current language.

onToggleOriginalText

Called when the user taps on the "Show Original" or "Show Translation" label.