import { Link } from 'react-router-dom'; import { Image } from '@shared/image'; import { DEFAULT_AVATAR } from '@stores/constants'; import { useProfile } from '@utils/hooks/useProfile'; import { shortenKey } from '@utils/shortenKey'; export function ChatSidebar({ pubkey }: { pubkey: string }) { const { user } = useProfile(pubkey); return (
{pubkey}

{user?.displayName || user?.name}

{user?.nip05 || shortenKey(pubkey)}

{user?.bio || user?.about}

View full profile
); }