@Composable public fun MessageInputOptions( activeAction: MessageAction,onCancelAction: () -> Unit,modifier: Modifier = Modifier,) {val optionImage =painterResource(id = if (activeAction is Reply) R.drawable.stream_compose_ic_reply else R.drawable.stream_compose_ic_edit)val title = stringResource(id = if (activeAction is Reply) R.string.stream_compose_reply_to_messageelse R.string.stream_compose_edit_message)Row(modifier, verticalAlignment = Alignment.CenterVertically,horizontalArrangement = Arrangement.SpaceBetween) {Icon(modifier = Modifier.padding(4.dp), painter = optionImage,contentDescription = null,tint = ChatTheme.colors.textLowEmphasis,)Text(text = title,style = ChatTheme.typography.bodyBold,color = ChatTheme.colors.textHighEmphasis,)Icon(modifier = Modifier.padding(4.dp).clickable(onClick = onCancelAction,indication = rememberRipple(bounded = false), interactionSource = remember { MutableInteractionSource() }),painter = painterResource(id = R.drawable.stream_compose_ic_close),contentDescription = stringResource(id= R.string.stream_compose_cancel),tint = ChatTheme.colors.textLowEmphasis,)}}
Shows the options "header" for the message input component. This is based on the currently active message action - [io.getstream.chat.android.common.state.Reply] or [io.getstream.chat.android.common.state.Edit].