Reusable LazyColumn and reusable LazyRow in 1 layout causes type mismatch
Why do I get this error when trying to use 2 different arrays in my reusable LazyColumn? I think the Array part is responsible but I could be wrong. I'm aiming to implement a LazyRow above a LazyColumn in the same layout, but with different data.
Type Mismatch. Required: TopItems. Found: BottomItems.
MainActivity.kt
Box(modifier = modifier
.fillMaxSize()
.padding(contentPadding)) {
MyLazyColumn(
lazyItemsTopSection = arrayOf(
TopItems.ItemTop1,...