MessageTimestamp

Renders timestamp text used by MessageStatus.

Best Practices

  • Pass formattedDate when you already format dates upstream.
  • Keep timestampTranslationKey stable for localization consistency.
  • Use one date parser (tDateTimeParser) throughout your app.
  • Keep timestamp formatting cheap in long lists.
  • Prefer theme styling over custom wrapper components.

Props

PropDescriptionType
formattedDateAlready formatted date to display directly.string | Date | undefined
timestampRaw timestamp value used to compute display text.string | Date | undefined
timestampTranslationKeyTranslation key used for timestamp formatting. Defaults to timestamp/MessageTimestamp.string
tDateTimeParserCustom date parser override.function