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
'use client';

import { useLocation } from 'react-router';

// The pathname workspace context follows. Split out purely so the desktop shell
// can override it (`.desktop.ts`): there, workspace context mounts outside the
// per-tab routers, where this router location never moves.
export const useWorkspaceSyncPathname = (): string => useLocation().pathname;