@Composable fun RecentTabImage( tab: RecentTab.Tab, modifier: Modifier = Modifier, contentScale: ContentScale = ContentScale.FillWidth, ) { val previewImageUrl = tab.state.content.previewImageUrl when { !previewImageUrl.isNullOrEmpty() -> { Image( url = previewImageUrl, modifier = modifier, targetSize = 108.dp, contentScale = ContentScale.Crop, ) } else -> ThumbnailCard( url = tab.state.content.url, key = tab.state.id, modifier = modifier, contentScale = contentScale, ) } }
A recent tab image.