mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-08-04 15:59:06 +00:00
Accept platform services in shared app host
This commit is contained in:
parent
6fa6c81af3
commit
d2d075ed6b
1 changed files with 16 additions and 0 deletions
|
|
@ -10,8 +10,24 @@ import androidx.compose.ui.Modifier
|
|||
import com.fluxa.app.shared.feature.catalog.CatalogAction
|
||||
import com.fluxa.app.shared.feature.catalog.CatalogHomeDataSource
|
||||
import com.fluxa.app.shared.feature.catalog.CatalogHomeStore
|
||||
import com.fluxa.app.shared.platform.FluxaPlatformServices
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
@Composable
|
||||
fun FluxaAppHost(
|
||||
platformServices: FluxaPlatformServices,
|
||||
language: String? = null,
|
||||
onCatalogAction: (CatalogAction) -> Unit = {},
|
||||
modifier: Modifier = Modifier
|
||||
) {
|
||||
FluxaAppHost(
|
||||
catalogHomeDataSource = platformServices.catalogHomeDataSource,
|
||||
language = language,
|
||||
onCatalogAction = onCatalogAction,
|
||||
modifier = modifier
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun FluxaAppHost(
|
||||
catalogHomeDataSource: CatalogHomeDataSource,
|
||||
|
|
|
|||
Loading…
Reference in a new issue