import { getDmParticipantPreview } from "@/features/channels/lib/dmParticipantDisplay"; import { UserProfilePopover } from "@/features/profile/ui/UserProfilePopover"; import { UserAvatar } from "@/shared/ui/UserAvatar"; export type DirectMessageIntroParticipant = { avatarUrl: string | null; displayName: string; pubkey: string; }; export function DirectMessageIntroAvatarStack({ participants, }: { participants: DirectMessageIntroParticipant[]; }) { const { hiddenCount, visibleParticipants } = getDmParticipantPreview(participants); const stackItemCount = visibleParticipants.length + (hiddenCount > 0 ? 1 : 0); return (