MessageTimestamp
Renders timestamp text used by MessageStatus.
Best Practices
- Pass
formattedDatewhen you already format dates upstream. - Keep
timestampTranslationKeystable 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
| Prop | Description | Type |
|---|---|---|
formattedDate | Already formatted date to display directly. | string | Date | undefined |
timestamp | Raw timestamp value used to compute display text. | string | Date | undefined |
timestampTranslationKey | Translation key used for timestamp formatting. Defaults to timestamp/MessageTimestamp. | string |
tDateTimeParser | Custom date parser override. | function |