Package-level declarations

Functions

Link copied to clipboard
fun SelectedChannelMenu(selectedChannel: Channel, currentUser: User?, channelActions: List<ChannelAction>, onChannelOptionConfirm: (ChannelAction) -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(topStart = 16.dp, topEnd = 16.dp), overlayColor: Color = ChatTheme.colors.backgroundCoreScrim, headerContent: @Composable ColumnScope.() -> Unit = { with(ChatTheme.componentFactory) { ChannelMenuHeaderContent( params = ChannelMenuHeaderContentParams( selectedChannel = selectedChannel, currentUser = currentUser, ), ) } }, centerContent: @Composable ColumnScope.() -> Unit = { with(ChatTheme.componentFactory) { ChannelMenuCenterContent( params = ChannelMenuCenterContentParams( onChannelOptionConfirm = onChannelOptionConfirm, channelActions = channelActions, ), ) } })

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.