package com.tsmobile.app.ui.components

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.runtime.Composable

/** Chat top bar, backed by the shared application chrome. */
@Composable
fun ChatHeader(
    channelName: String,
    memberCount: Int,
    onBack: () -> Unit,
    onChannelDetail: () -> Unit,
) {
    AppTopBar(
        title = channelName,
        subtitle = "${memberCount}人",
        navigationIcon = Icons.AutoMirrored.Filled.ArrowBack,
        navigationContentDescription = "返回",
        onNavigationClick = onBack,
        actionIcon = Icons.Default.MoreVert,
        actionContentDescription = "频道详情",
        onActionClick = onChannelDetail,
    )
}
