import Router from 'next/router' import clsx from 'clsx' export function Avatar(props: { username?: string avatarUrl?: string noLink?: boolean }) { const { username, avatarUrl, noLink } = props const onClick = noLink && username ? undefined : (e: any) => { e.stopPropagation() Router.push(`/${username}`) } return (