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/apps/meteor/client/components/UserInfo/UserInfoUsername.tsx

18 lines
584 B

import type { IUser } from '@rocket.chat/core-typings';
import type { Box } from '@rocket.chat/fuselage';
import type { ReactElement, ComponentProps } from 'react';
import React from 'react';
import UserCard from '../UserCard';
type UserInfoUsernameProps = {
username: IUser['username'];
status: ReactElement;
} & ComponentProps<typeof Box>;
// TODO: Remove UserCard.Username
const UserInfoUsername = ({ username, status, ...props }: UserInfoUsernameProps): ReactElement => (
<UserCard.Username name={username} status={status} {...props} />
);
export default UserInfoUsername;