Package-level declarations
Functions
Link copied to clipboard
fun SelectedChannelMenu( selectedChannel: Channel, isMuted: Boolean, currentUser: User?, onChannelOptionClick: (ChannelAction) -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier, channelOptions: List<ChannelOptionState> = buildDefaultChannelOptionsState(
selectedChannel = selectedChannel,
isMuted = isMuted,
ownCapabilities = selectedChannel.ownCapabilities,
), shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, headerContent: @Composable ColumnScope.() -> Unit = {
with(ChatTheme.componentFactory) {
ChannelMenuHeaderContent(
modifier = Modifier,
selectedChannel = selectedChannel,
currentUser = currentUser,
)
}
}, centerContent: @Composable ColumnScope.() -> Unit = {
with(ChatTheme.componentFactory) {
ChannelMenuCenterContent(
modifier = Modifier,
onChannelOptionClick = onChannelOptionClick,
channelOptions = channelOptions,
)
}
})
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.