FileAttachmentContent

open fun FileAttachmentContent(modifier: Modifier, attachmentState: AttachmentState, showFileSize: (Attachment) -> Boolean, onItemClick: (List<AttachmentPreviewHandler>, Attachment) -> Unit)

Factory method for creating the content of a file attachment.

Parameters

modifier

Modifier for styling the composable.

attachmentState

The state of the attachment, containing information about the file.

showFileSize

A lambda function that determines whether the file size should be displayed.

onItemClick

A lambda function invoked when the file attachment is clicked, providing a list of AttachmentPreviewHandler and the clicked Attachment.