import React from 'react'; import { Text, View } from 'react-native'; import { themes } from '../../lib/constants'; import I18n from '../../i18n'; import { useTheme } from '../../theme'; import Timezone from './Timezone'; import CustomFields from './CustomFields'; import styles from './styles'; import { IUserParsed } from '.'; const Roles = ({ roles }: { roles?: string[] }) => { const { theme } = useTheme(); if (roles && roles.length) { {I18n.t('Roles')} {roles.map(role => role ? ( {role} ) : null )} ; } return null; }; const Direct = ({ roomUser }: { roomUser: IUserParsed }) => ( <> ); export default Direct;