@Composable public fun FilesPickerItemImage( fileItem: AttachmentPickerItemState, modifier: Modifier = Modifier, ) { val attachment = fileItem.attachmentMetaData val isImage = fileItem.attachmentMetaData.type == "image" val painter = if (isImage) { val dataToLoad = attachment.uri ?: attachment.file rememberStreamImagePainter(dataToLoad) } else { painterResource(id = MimeTypeIconProvider.getIconRes(attachment.mimeType)) }  val shape = if (isImage) ChatTheme.shapes.imageThumbnail else null val imageModifier = modifier.let { baseModifier -> if (shape != null) baseModifier.clip(shape) else baseModifier }  Image( modifier = imageModifier, painter = painter, contentDescription = null, contentScale = if (isImage) ContentScale.Crop else ContentScale.Fit ) }
Represents the image that's shown in file picker items. This can be either an image/icon that represents the file  type or a thumbnail in case the file type is an image.