import type { IRoom } from '@rocket.chat/core-typings'; import { HeaderState } from '@rocket.chat/ui-client'; import { useSetting } from '@rocket.chat/ui-contexts'; import { memo } from 'react'; import { useTranslation } from 'react-i18next'; export type EncryptedProps = { room: IRoom }; const Encrypted = ({ room }: EncryptedProps) => { const { t } = useTranslation(); const e2eEnabled = useSetting('E2E_Enable'); return e2eEnabled && room?.encrypted ? : null; }; export default memo(Encrypted);