import { memo } from 'react'; import { Link } from 'react-router-dom'; import Icon from './Icon'; import './Avatar.css'; /** * @typedef {object} AvatarProps * @property {import('../api').User} user * @property {import('react').CSSProperties=} style * @property {string=} link * @property {import('react').ReactNode=} children */ /** * Avatar component * @param {AvatarProps} props */ function Avatar({ user, style, link, children }) { return (