@OptIn(ExperimentalComposeUiApi::class) @Composable fun RecentBookmarks( bookmarks: List<RecentBookmark>, menuItems: List<RecentBookmarksMenuItem>, backgroundColor: Color, onRecentBookmarkClick: (RecentBookmark) -> Unit = {}, ) { LazyRow( modifier = Modifier.semantics { testTagsAsResourceId = true testTag = "recent.bookmarks" }, contentPadding = PaddingValues(horizontal = 16.dp), horizontalArrangement = Arrangement.spacedBy(8.dp), ) { items(bookmarks) { bookmark -> RecentBookmarkItem( bookmark = bookmark, menuItems = menuItems, backgroundColor = backgroundColor, onRecentBookmarkClick = onRecentBookmarkClick, ) } } }
A list of recent bookmarks.