import { observer } from "mobx-react"; // hooks import { Avatar, AvatarGroup, UserGroupIcon } from "@plane/ui"; import { useMember } from "@/hooks/store"; // ui type AvatarProps = { showTooltip: boolean; userIds: string | string[] | null; }; export const ButtonAvatars: React.FC = observer((props) => { const { showTooltip, userIds } = 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 ; });