MessageBubble

fun MessageBubble(chatMessage: Message, sentBySelf: Boolean, messageContent: @Composable () -> Unit, sender: String, modifier: Modifier)

Composable function displaying an individual message bubble.

Parameters

chatMessage

The Message object containing message data.

sentBySelf

Boolean indicating whether the message was sent by the current user.

messageContent

Composable lambda for rendering the message content.

sender

Name of the sender of the message.

modifier

Modifier to apply to the message bubble.