import { observer } from "mobx-react"; // icons import { LucideIcon, Users } from "lucide-react"; // ui import { Avatar, AvatarGroup } from "@plane/ui"; // hooks import { useMember } from "@/hooks/store"; type AvatarProps = { showTooltip: boolean; userIds: string | string[] | null; icon?: LucideIcon; }; export const ButtonAvatars: React.FC = observer((props) => { const { showTooltip, userIds, icon: Icon } = props; // store hooks const { getUserDetails } = useMember(); if (Array.isArray(userIds)) { if (userIds.length > 0) return ( {userIds.map((userId) => { const userDetails = getUserDetails(userId); if (!userDetails) return; return ; })} ); } else { if (userIds) { const userDetails = getUserDetails(userIds); return ; } } return Icon ? ( ) : ( ); });