import styles from './DialogCard.module.scss' import DialogAvatar from './DialogAvatar' import type { Author, Chat, ChatMember, User } from '../../graphql/types.gen' import { apiClient } from '../../utils/apiClient' import { t } from '../../utils/intl' import { useInbox } from '../../context/inbox' type DialogProps = { online?: boolean message?: string counter?: number title?: string ownSlug: string members: ChatMember[] } const DialogCard = (props: DialogProps) => { const companions = props.members.filter((member) => member.slug !== props.ownSlug) console.log('!!! companions:', companions) return (