/* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) SPDX-License-Identifier: AGPL-3.0-only */ import React from 'react' import { useTranslation } from 'react-i18next' import { ShowIf } from '../show-if/show-if' import './user-avatar.scss' export interface UserAvatarProps { size?: 'sm' | 'lg' name: string; photo: string; additionalClasses?: string; showName?: boolean } const UserAvatar: React.FC = ({ name, photo, size, additionalClasses = '', showName = true }) => { const { t } = useTranslation() return ( {t('common.avatarOf', {name} ) } export { UserAvatar }