@Suppress("FunctionName") public fun FileAttachmentFactory(): AttachmentFactory = AttachmentFactory( canHandle = { attachments ->attachments.any { it.isFile() } }, previewContent = @Composable { modifier, attachments, onAttachmentRemoved -> FileAttachmentPreviewContent(modifier = modifier, attachments = attachments, onAttachmentRemoved = onAttachmentRemoved)},content = @Composable { modifier, state ->FileAttachmentContent(modifier = modifier.wrapContentHeight().width(ChatTheme.dimens.attachmentsContentFileWidth),attachmentState = state)},)
An [AttachmentFactory] that validates attachments as files and uses [FileAttachmentContent] to build the UI for the message.