@Composable private fun RecentlyVisitedCaption( count: Int, modifier: Modifier, ) { val stringId = if (count == 1) { R.string.history_search_group_site } else { R.string.history_search_group_sites } Text( text = String.format(LocalContext.current.getString(stringId), count), modifier = modifier, color = when (isSystemInDarkTheme()) { true -> FirefoxTheme.colors.textPrimary false -> FirefoxTheme.colors.textSecondary }, fontSize = 12.sp, overflow = TextOverflow.Ellipsis, maxLines = 1, ) }
The caption text for a recent visit.