@Composable public fun CancelIcon( modifier: Modifier = Modifier, onClick: () -> Unit, ) { Icon( modifier = modifier .background(shape = CircleShape, color = ChatTheme.colors.overlayDark). clickable( indication = null, interactionSource = remember { MutableInteractionSource() }, onClick = onClick ), painter = painterResource(id = R.drawable.stream_compose_ic_close), contentDescription = stringResource(id = R.string.stream_compose_cancel), tint = ChatTheme.colors.appBackground ) }
Represents a simple cancel icon that is used primarily for attachments. @param modifier Modifier for styling.  @param onClick Handler when the user clicks on the icon.