import type React from 'react'; import cs from 'classnames'; import { Avatar } from 'tuikit-atomicx-react/chat'; import styles from './FriendItem.module.scss'; import type { FriendItemProps } from '../../../../types/contact'; export const FriendItem: React.FC = ({ friend, isActive, onClick, className, style, }) => { const handleClick = () => onClick?.(friend); return (
(e.key === 'Enter' || e.key === ' ') && handleClick()} >
{friend.friendRemark || friend?.nickname || friend.userID}
); };