@Composable public fun SelectedMessageMenu( message: Message, messageOptions: List<MessageOptionItemState>,ownCapabilities: Set<String>,onMessageAction: (MessageAction) -> Unit, onShowMoreReactionsSelected: () -> Unit, modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), @DrawableRes showMoreReactionsIcon: Int = R.drawable.stream_compose_ic_more, onDismiss: () -> Unit = {}, headerContent: @Composable ColumnScope.() -> Unit = { val canLeaveReaction = ownCapabilities.contains(ChannelCapabilities.SEND_REACTION) if (canLeaveReaction) { DefaultSelectedMessageReactionOptions( message = message, reactionTypes = reactionTypes, showMoreReactionsDrawableRes = showMoreReactionsIcon, onMessageAction = onMessageAction, showMoreReactionsIcon = onShowMoreReactionsSelected ) } }, centerContent: @Composable ColumnScope.() -> Unit = {DefaultSelectedMessageOptions( messageOptions =messageOptions,onMessageAction = onMessageAction ) }, ) { SimpleMenu( modifier = modifier, shape = shape, overlayColor = overlayColor, onDismiss = onDismiss, headerContent = headerContent, centerContent = centerContent ) }
Represents the options user can take after selecting a message.