import { Box, ActionButton, Skeleton } from '@rocket.chat/fuselage';
import React, { forwardRef } from 'react';
import MarkdownText from '../MarkdownText';
import * as Status from '../UserStatus';
import UserAvatar from '../avatar/UserAvatar';
import Info from './Info';
import Roles from './Roles';
import UserCardContainer from './UserCardContainer';
import Username from './Username';
const clampStyle = {
display: '-webkit-box',
overflow: 'hidden',
WebkitLineClamp: 3,
WebkitBoxOrient: 'vertical',
wordBreak: 'break-all',
};
const UserCard = forwardRef(function UserCard(
{
className,
style,
open,
name = ,
username,
etag,
customStatus = ,
roles = (
<>
>
),
bio = (
<>
>
),
status = ,
actions,
localTime = ,
onClose,
nickname,
t = (e) => e,
},
ref,
) {
return (
{actions && (
{actions}
)}
{nickname && (
({nickname})
)}
{customStatus && (
{typeof customStatus === 'string' ? (
) : (
customStatus
)}
)}
{roles}
{localTime}
{bio && (
{typeof bio === 'string' ? : bio}
)}
{open && {t('See_full_profile')}}
{onClose && (
)}
);
});
export default UserCard;