Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
Modifier = Modifier, onBookClick: (Book) -> Unit, ) { LazyColumn( modifier = modifier.fillMaxSize(), ) { items(SampleData.books) { BookCell( modifier = Modifier.clickable(onClick = { onBookClick(it) }), book = it, ) } } } @Composable fun BookCell(book: Book, modifier: Modifier = Modifier) { Text(