The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/UserCard/Username.js

15 lines
453 B

import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import * as UserStatus from '../UserStatus';
const Username = ({ name, status = <UserStatus.Offline />, title, ...props }) => (
<Box {...props} display='flex' title={title} flexShrink={0} alignItems='center' fontScale='h4' color='default' withTruncatedText>
{status}{' '}
<Box mis='x8' flexGrow={1} withTruncatedText>
{name}
</Box>
</Box>
);
export default Username;