@Composable public fun SelectedChannelMenu(selectedChannel: Channel,isMuted: Boolean,currentUser: User?,onChannelOptionClick: (ChannelAction) -> Unit, onDismiss: () -> Unit,modifier: Modifier = Modifier,shape: Shape = ChatTheme.shapes.bottomSheet,overlayColor: Color = ChatTheme.colors.overlay,headerContent: @Composable ColumnScope.() -> Unit = { DefaultSelectedChannelMenuHeaderContent( selectedChannel = selectedChannel,currentUser = currentUser)}, centerContent: @Composable ColumnScope.() -> Unit = {DefaultSelectedChannelMenuCenterContent(selectedChannel = selectedChannel,isMuted = isMuted,onChannelOptionClick = onChannelOptionClick,ownCapabilities = selectedChannel.ownCapabilities)},) {SimpleMenu(modifier = modifier, shape = shape,overlayColor = overlayColor,onDismiss = onDismiss,headerContent = headerContent,centerContent = centerContent)}
Shows special UI when an item is selected. It also prepares the available options for the channel, based on if we're an admin or not.