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.

396 B
Raw Blame
import { docsPagePath } from '@/features/ResourceHome/paths';
import { buildWorkspaceAwarePath } from '@/features/Workspace/workspaceAwarePath';

export const buildDocumentModalUrl = (
  appOrigin: string,
  documentId: string,
  activeWorkspaceSlug?: string | null,
) => {
  const path = buildWorkspaceAwarePath(docsPagePath(documentId), activeWorkspaceSlug);
  return `${appOrigin}${path}`;
};