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.

386 B
Raw Blame
interface ResolveCommunityUserAvatarTargetParams {
  isWorkspaceScope: boolean;
  profileUsername?: string | null;
}

export const resolveCommunityUserAvatarTarget = ({
  isWorkspaceScope,
  profileUsername,
}: ResolveCommunityUserAvatarTargetParams) => {
  if (isWorkspaceScope) return '/marketplace/workspace';
  if (profileUsername) return `/marketplace/user/${profileUsername}`;
};