import React, { useContext } from 'react'; import Touchable from './Touchable'; import { E2E_MESSAGE_TYPE } from '../../lib/encryption/constants'; import { CustomIcon } from '../../lib/Icons'; import { themes } from '../../constants/colors'; import { BUTTON_HIT_SLOP } from './utils'; import MessageContext from './Context'; import styles from './styles'; interface IMessageEncrypted { type: string; theme: string; } const Encrypted = React.memo(({ type, theme }: IMessageEncrypted) => { if (type !== E2E_MESSAGE_TYPE) { return null; } const { onEncryptedPress } = useContext(MessageContext); return ( ); }); export default Encrypted;