RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/UserInfo/UserInfoUsername.tsx

Summary

Maintainability
A
0 mins
Test Coverage
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 { UserCardUsername } from '../UserCard';

type UserInfoUsernameProps = {
    username: IUser['username'];
    status: ReactElement;
} & ComponentProps<typeof Box>;

const UserInfoUsername = ({ username, status, ...props }: UserInfoUsernameProps): ReactElement => (
    <UserCardUsername name={username} status={status} {...props} />
);

export default UserInfoUsername;