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.

535 B
Raw Blame
/**
 * Active identity shown in the user button / panel header. In the open-source
 * build there's only one identity (the signed-in user), so this stub returns
 * `null` everywhere — callers fall back to user data. Cloud overrides this
 * hook to return the active workspace's avatar / name when a team workspace
 * is selected, so the header reflects the current context.
 */
export interface ActiveIdentity {
  avatar?: string | null;
  name?: string | null;
}

export const useActiveIdentity = (): ActiveIdentity | null => null;