Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

854 B
Raw Blame
/**
 * userId → display profile for the members of the active workspace.
 *
 * Business slot. In personal mode (and in OSS, which has no workspace concept)
 * this is an empty map, so a home surface that resolves a topic's triggerer
 * through it simply renders no author — degrading to the personal inbox with no
 * extra branching. The cloud override fills it from the workspace member store.
 *
 * A workspace topic already carries `userId` (its creator / triggerer); this is
 * the client-side lookup that turns that id into a face and a name.
 */
export interface WorkspaceMemberProfile {
  avatar?: string | null;
  fullName?: string | null;
  username?: string | null;
}

const EMPTY: ReadonlyMap<string, WorkspaceMemberProfile> = new Map();

export const useWorkspaceMemberProfiles = (): ReadonlyMap<string, WorkspaceMemberProfile> => EMPTY;