NotificationSection

fun NotificationSection(messagesEnabled: Boolean, onToggleMessages: (Boolean) -> Unit, nodeEventsEnabled: Boolean, onToggleNodeEvents: (Boolean) -> Unit, lowBatteryEnabled: Boolean, onToggleLowBattery: (Boolean) -> Unit, reactionsEnabled: Boolean, onToggleReactions: (Boolean) -> Unit, newWaypointsEnabled: Boolean, onToggleNewWaypoints: (Boolean) -> Unit, modifier: Modifier = Modifier, permission: PermissionUiState? = null)(source)

Notification settings section with in-app toggles. Primarily used on platforms without system notification channels.

With a permission the toggles depend on, the section leads with a row that asks for it while it can still be asked for, and says it is blocked once it cannot. The ask happens on that row's click, the user gesture a browser requires.