@Composable public fun BackButton( painter: Painter, onBackPressed: () -> Unit, modifier: Modifier = Modifier, ) { IconButton( modifier = modifier, onClick = onBackPressed ) { Icon( painter = painter, contentDescription = null, tint = ChatTheme.colors.textHighEmphasis, ) } }
Basic back button, that shows an icon and calls [onBackPressed] when tapped.  @param painter The icon or image to show. @param onBackPressed Handler for the back action. @param modifier Modifier for styling.