@Composable public fun SimpleMenu( modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, onDismiss: () -> Unit = {}, headerContent: @Composable ColumnScope.() -> Unit = {}, centerContent: @Composable ColumnScope.() -> Unit = {}, ) { Box( modifier = Modifier .background(overlayColor) .fillMaxSize() .clickable( onClick = onDismiss, indication = null, interactionSource = remember { MutableInteractionSource() } ) ) { Card( modifier = modifier.clickable( onClick = {},indication = null, interactionSource = remember { MutableInteractionSource() } ), shape = shape, backgroundColor = ChatTheme.colors.barsBackground ) { Column { headerContent() centerContent()}}}BackHandler(enabled = true, onBack = onDismiss)}
Represents a reusable and generic modal menu useful for showing info about selected items.