import React from 'react'; import classNames from 'classnames'; import { useConversationUsername, useIsMe } from '../../hooks/useParamSelector'; import { Avatar, AvatarSize } from '../avatar/Avatar'; import { Emojify } from '../conversation/Emojify'; type Props = { pubkey: string; onClick?: () => void; }; const AvatarItem = (props: { pubkey: string }) => { const { pubkey } = props; return ; }; export const ContactListItem = (props: Props) => { const { onClick, pubkey } = props; const name = useConversationUsername(pubkey); const isMe = useIsMe(pubkey); const title = name ? name : pubkey; const displayName = isMe ? window.i18n('me') : title; return (
); };