SupportingContent

fun SupportingContent(progress: DownloadProgress, completedContent: @Composable (DownloadProgress.Healthy) -> Unit = { Text(it.completedBytesString()) }, downloadingContent: @Composable (DownloadProgress.Healthy) -> Unit = { Text(stringResource(Res.string.offline_pack_downloading_status, it.completedBytesString())) }, pausedContent: @Composable (DownloadProgress.Healthy) -> Unit = { Text(stringResource(Res.string.offline_pack_paused_status, it.completedBytesString())) }, errorContent: @Composable (DownloadProgress.Error) -> Unit = { Text(stringResource(Res.string.offline_pack_error_status, it.message)) }, tileLimitExceededContent: @Composable (DownloadProgress.TileLimitExceeded) -> Unit = { Text(stringResource(Res.string.offline_pack_tile_limit_exceeded, it.limit)) }, unknownContent: @Composable (DownloadProgress.Unknown) -> Unit = { Text(stringResource(Res.string.offline_pack_unknown_status)) })(source)

Displays the pack's download status and size, or its error or tile limit status.