import React from 'react'; import './styles/index.scss'; import { Profile as TProfile } from '@tencentcloud/chat'; import { Avatar, defaultUserAvatar } from '../Avatar'; import { Icon, IconTypes } from '../Icon'; export interface ProfileProps { profile?: TProfile, className?: string, handleAvatar?: () => void, } export function Profile(props: T) { const { profile, className = '', handleAvatar } = props; return (profile?.nick || profile?.userID) && (
{profile.nick || profile.userID}
); }