import React from 'react'; import { Avatar } from 'tailchat-design'; import { useCachedUserInfo } from 'tailchat-shared'; interface UserAvatarProps { userId: string; className?: string; style?: React.CSSProperties; size?: 'large' | 'small' | 'default' | number; } /** * 用户头像组件 */ export const UserAvatar: React.FC = React.memo((props) => { const cachedUserInfo = useCachedUserInfo(props.userId); return ( ); }); UserAvatar.displayName = 'UserAvatar';