import React from 'react'; import { useTranslation } from 'react-i18next'; import { Profile } from '@tencentcloud/chat'; import { Avatar, defaultUserAvatar } from '../../Avatar'; interface Props { profile: Profile; } export function UnMemoizedBasicInfo( props: T, ): React.ReactElement { const { profile } = props; const { t } = useTranslation(); const { userID, nick, selfSignature, avatar, } = profile; return (
{nick || userID}
{`ID:${userID}`}
{t('TUIContact.Signature')} : {selfSignature || ''}
); } export const BasicInfo = React.memo(UnMemoizedBasicInfo);