import { NavLink } from 'react-router-dom'; import { twMerge } from 'tailwind-merge'; import { Image } from '@shared/image'; import { DEFAULT_AVATAR } from '@stores/constants'; import { useProfile } from '@utils/hooks/useProfile'; import { shortenKey } from '@utils/shortenKey'; export function ChatsListItem({ data }: { data: any }) { const { status, user } = useProfile(data.sender_pubkey); if (status === 'loading') { return (