import React from "react"; import { useHistory } from "react-router-dom"; import AccountCircleIcon from '@material-ui/icons/AccountCircle'; import { useTranslation } from 'react-i18next'; export function ProfilePic({ src, username, size, border, href, ...props }: any) { const history = useHistory(); const { t } = useTranslation(); return ( history.push(`/${username}`)}> {src ? {t('social:profilePic', : } ); }