@OptIn(ExperimentalFoundationApi::class) @Composable public fun ReactionsPicker( message: Message, onMessageAction: (MessageAction) -> Unit, modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, cells: GridCells = GridCells.Fixed(DefaultNumberOfReactions), onDismiss: () -> Unit = {}, reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), headerContent: @Composable ColumnScope.() -> Unit = {}, centerContent: @Composable ColumnScope.() -> Unit = { DefaultReactionsPickerCenterContent( message = message, onMessageAction = onMessageAction, cells = cells, reactionTypes = reactionTypes ) }, ) { SimpleMenu( modifier = modifier, shape = shape, overlayColor = overlayColor, headerContent = headerContent, centerContent = centerContent, onDismiss = onDismiss ) }
Displays all of the available reactions the user can set on a message.