import React from 'react'; import { Text } from 'react-native'; import styles from './styles'; import { capitalize } from '../../lib/methods/helpers/room'; import { IUpdatedAtProps } from './interfaces'; import { useTheme } from '../../theme'; const UpdatedAt = React.memo(({ date, hideUnreadStatus, alert }: IUpdatedAtProps) => { const { colors } = useTheme(); if (!date) { return null; } return ( {capitalize(date)} ); }); export default UpdatedAt;