import { useProfile } from '@lume/utils/hooks/useProfile'; import { shortenKey } from '@lume/utils/shortenKey'; export const NoteMentionUser = ({ pubkey }: { pubkey: string }) => { const { user, isError, isLoading } = useProfile(pubkey); return ( <> {isError || isLoading ? ( ) : ( @{user?.username || user?.name || shortenKey(pubkey)} )} ); };