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.

359 B
Raw Blame
/**
 * Whether a pathname is the Home page: `/` in personal scope, or the workspace
 * root (`/<slug>` / `/<slug>/`) when a workspace is active.
 */
export const isHomePathname = (pathname: string, workspaceSlug?: string | null): boolean =>
  pathname === '/' ||
  (!!workspaceSlug && (pathname === `/${workspaceSlug}` || pathname === `/${workspaceSlug}/`));