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.

404 B
Raw Blame
import { useActiveWorkspaceSlug } from '@/business/client/hooks/useActiveWorkspaceSlug';
import { useActiveLocation } from '@/hooks/useActiveLocation';

import { toFavoritePath } from './path';

/** The open page as a favorite link, for targets reached at more than one URL. */
export const useCurrentFavoritePath = (): string =>
  toFavoritePath(useActiveLocation().pathname, useActiveWorkspaceSlug());