import React from 'react';
import classNames from 'classnames';
import { Avatar, AvatarSize } from './avatar/Avatar';
import { Constants } from '../session';
import { SessionIcon } from './icon';
import { useConversationUsernameOrShorten } from '../hooks/useParamSelector';
const AvatarItem = (props: { memberPubkey: string }) => {
return ;
};
export const MemberListItem = (props: {
pubkey: string;
isSelected: boolean;
// this bool is used to make a zombie appear with less opacity than a normal member
isZombie?: boolean;
onSelect?: (pubkey: string) => void;
onUnselect?: (pubkey: string) => void;
}) => {
const { isSelected, pubkey, isZombie, onSelect, onUnselect } = props;
const memberName = useConversationUsernameOrShorten(pubkey);
return (
{
isSelected ? onUnselect?.(pubkey) : onSelect?.(pubkey);
}}
role="button"
>
);
};