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/Message/StatusMessage.tsx

20 lines
497 B

import { Box, Icon } from '@rocket.chat/fuselage';
import React, { ReactElement, memo } from 'react';
import { useUserData } from '../../hooks/useUserData';
const StatusMessage = ({ uid }: { uid: string }): ReactElement | null => {
const data = useUserData(uid);
if (!data || !data.statusText) {
return null;
}
return (
<Box title={data.statusText} justifyContent='center' display='flex'>
<Icon name='balloon-text' size='x16' />
</Box>
);
};
export default memo(StatusMessage);