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