@Composable internal fun DefaultChannelHeaderLeadingContent(currentUser: User?,onAvatarClick: (User?) -> Unit,) {val size = Modifier.size(40.dp)if (currentUser != null) { UserAvatar(modifier = size,user = currentUser,contentDescription = currentUser.name,showOnlineIndicator = false,onClick = { onAvatarClick(currentUser) })} else {Spacer(modifier = size)}}
Represents the default leading content for the [ChannelListHeader], which is a [UserAvatar]. We show the avatar if the user is available, otherwise we add a spacer to make sure the alignment is correct.