ThreadItem

fun ThreadItem(thread: Thread, currentUser: User?, onThreadClick: (Thread) -> Unit, modifier: Modifier = Modifier)

The basic Thread item, showing information about the thread title, parent message, latest reply and number of unread replies.

Parameters

thread

The Thread object holding the data to be rendered.

currentUser

The currently logged User, used for formatting the message in the thread preview.

onThreadClick

Action invoked when the user clicks on the item.

modifier

Modifier instance for general styling.