import React from 'react'; import PropTypes from 'prop-types'; import dateFormat from 'dateformat'; import { isInSameDay } from '../../../util/common'; /** * Renders a formatted timestamp. * * Displays the time in hour:minute format if the message is from today or yesterday, unless `fullTime` is true. * For older messages, it shows the date and time. * * @param {number} timestamp - The timestamp to display. * @param {boolean} [fullTime=false] - If true, always show the full date and time. * @param {boolean} hour24Clock - Whether to use 24-hour time format. * @param {string} dateFormatString - Format string for the date part. * @returns {JSX.Element} A