@Suppress("FunctionName") public fun UploadAttachmentFactory(): AttachmentFactory = AttachmentFactory( canHandle = { attachments -> attachments.any {it.isUploading() } }, content = @Composable { modifier, state ->FileUploadContent(modifier = modifier.wrapContentHeight().width(ChatTheme.dimens.attachmentsContentFileUploadWidth),attachmentState = state)},)
An [AttachmentFactory] that validates and shows uploading attachments using [FileUploadContent]. Has no "preview content", given that this attachment only exists after being sent.