ThreadListHeader
fun ThreadListHeader(modifier: Modifier = Modifier, title: String = stringResource(R.string.stream_compose_thread_list_header_title), currentUser: User? = null, connectionState: ConnectionState = ConnectionState.Connected, onAvatarClick: (User?) -> Unit = {})
A header composable for the thread list screen. Uses the shared ListHeader layout with no trailing action button.
Parameters
modifier
Modifier for styling.
title
The title to display, when the network is available.
currentUser
The currently logged in user, to load its image in the avatar.
connectionState
The state of WS connection used to switch between the title and the network loading view.
onAvatarClick
Action handler when the user taps on an avatar.