{errorMessage}
; if (!teamGroups) return{loadingMessage}
; return{errorMessage}
; if (!directory) return{loadingMessage}
; return ({emptyMessage}
: null; } const open = openKey ? findByKey(resolvedGroups, openKey) : null; function markClipped(key: string, isClipped: boolean) { setClipped((current) => { if (current.has(key) === isClipped) return current; const next = new Set(current); if (isClipped) next.add(key); else next.delete(key); return next; }); } function toggle(group: PeopleGroup, person: Person, index: number) { const key = keyFor(group, person, index); const next = openKey === key ? null : key; setOpenKey(next); onExpand?.(next ? person : null, next ? group : null); } function handleKeyDown(event: React.KeyboardEvent{group.note}
}{person.name}
{title &&{title}
}{paragraph}
))} {profile && ( View full profile )}