// Copyright 2018-2022 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import type { ReactElement } from 'react'; import React from 'react'; import classNames from 'classnames'; import { formatTime } from '../../util/timestamp'; import type { LocalizerType } from '../../types/Util'; import { Time } from '../Time'; import { useNowThatUpdatesEveryMinute } from '../../hooks/useNowThatUpdatesEveryMinute'; export type Props = { timestamp: number; module?: string; withImageNoCaption?: boolean; withSticker?: boolean; withTapToViewExpired?: boolean; direction?: 'incoming' | 'outgoing'; i18n: LocalizerType; }; export function MessageTimestamp({ direction, i18n, module, timestamp, withImageNoCaption, withSticker, withTapToViewExpired, }: Readonly): ReactElement { const now = useNowThatUpdatesEveryMinute(); const moduleName = module || 'module-timestamp'; return ( ); }