JetpackNavHost

fun JetpackNavHost(appState: JetpackAppState, onShowSnackbar: suspend (String, SnackbarAction, Throwable?) -> Boolean, modifier: Modifier = Modifier)

Composable function that sets up the navigation host for the Jetpack Compose application.

Parameters

appState

The state of the Jetpack application, containing the navigation controller and user login status.

onShowSnackbar

A lambda function to show a snackbar with a message and an action.

modifier

The modifier to be applied to the NavHost.