import { memo } from 'react' import Avatar from './Avatar' /** * @typedef {object} ContactProps * @property {import('../api').Chat} user * @property {import('react').CSSProperties} style */ /** * Contact component * @param {ContactProps} props */ function Contact({ user, style }) { return ( {user.unreadCount && {user.unreadCount}}
{user.lastMessageText}
) } export default memo(Contact)