import { USER } from '@/fragments/users' import errorStyles from '@/styles/error.module.css' import { useLazyQuery } from '@apollo/client' import classNames from 'classnames' import Link from 'next/link' import HoverablePopover from './hoverable-popover' import ItemPopover from './item-popover' import { UserBase, UserSkeleton } from './user-list' function StackingSince ({ since }) { return ( stacking since:{' '} {since ? ( #{since} ) : never} ) } export default function UserPopover ({ name, children }) { const [getUser, { loading, data }] = useLazyQuery( USER, { variables: { name }, fetchPolicy: 'cache-first' } ) return ( : !data.user ?

USER NOT FOUND

: ( )} /> ) }