commonMain.DialogSlot.kt Maven / Gradle / Ivy
package de.halfbit.componental.compose
import androidx.compose.runtime.Composable
import de.halfbit.componental.router.slot.Slot
@Composable
public fun DialogSlot(
slot: Slot,
content: @Composable (id: I, child: C) -> Unit,
) {
val active = slot.active
if (active != null) {
content(active.id, active.child)
}
}