import React from 'react'; import PropTypes from 'prop-types'; import { COLOR_PRIMARY } from '../../constants/colors'; import { CustomIcon } from '../../lib/Icons'; import styles from './styles'; const ReadReceipt = React.memo(({ isReadReceiptEnabled, unread }) => { if (isReadReceiptEnabled && !unread && unread !== null) { return ; } return null; }); ReadReceipt.displayName = 'MessageReadReceipt'; ReadReceipt.propTypes = { isReadReceiptEnabled: PropTypes.bool, unread: PropTypes.bool }; export default ReadReceipt;