@Composable public fun Timestamp( date: Date?, modifier: Modifier = Modifier,formatter: DateFormatter = ChatTheme.dateFormatter,formatType: DateFormatType = DATE, ) {val timestamp = if (LocalInspectionMode.current) {"13:49"} else {when (formatType) {TIME -> formatter.formatTime(date)DATE -> formatter.formatDate(date)}}Text(modifier = modifier,text = timestamp,style = ChatTheme.typography.footnote,color = ChatTheme.colors.textLowEmphasis)}
Represents a timestamp in the app, that's used primarily for channels and messages.