import { MessageRole, MessageRoles as FuselageMessageRoles } from '@rocket.chat/fuselage'; import { useTranslation } from 'react-i18next'; export type MessageRolesProps = { roles: Array; isBot?: boolean; }; const MessageRoles = ({ roles, isBot }: MessageRolesProps) => { const { t } = useTranslation(); return ( {roles.map((role, index) => ( {role} ))} {isBot && {t('Bot')}} ); }; export default MessageRoles;