MediaAttachmentPreviewContent

fun MediaAttachmentPreviewContent(attachments: List<Attachment>, onAttachmentRemoved: (Attachment) -> Unit, modifier: Modifier = Modifier, previewItemOverlayContent: @Composable (attachmentType: String?) -> Unit = { attachmentType -> if (attachmentType == AttachmentType.VIDEO) { DefaultPreviewItemOverlayContent() } })

UI for currently selected image and video attachments, within the MessageInput.

Parameters

attachments

Selected attachments.

onAttachmentRemoved

Handler when the user removes an attachment from the list.

modifier

Modifier for styling.

previewItemOverlayContent

Represents the content overlaid above individual preview items. By default it is used to display a play button over video previews.