import React from 'react'; import { Text } from 'react-native'; import styles from './styles'; import { themes } from '../../lib/constants'; import { capitalize } from '../../utils/room'; import { TSupportedThemes } from '../../theme'; interface IUpdatedAt { date: string; theme: TSupportedThemes; hideUnreadStatus: boolean; alert: boolean; } const UpdatedAt = React.memo(({ date, theme, hideUnreadStatus, alert }: IUpdatedAt) => { if (!date) { return null; } return ( {capitalize(date)} ); }); export default UpdatedAt;