refactor: move shared utilities to lib/shared/ sub-packages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
8
frontend/src/lib/shared/discussion/commentDeepLink.ts
Normal file
8
frontend/src/lib/shared/discussion/commentDeepLink.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function buildCommentHref(
|
||||
documentId: string,
|
||||
commentId: string,
|
||||
annotationId: string | null
|
||||
): string {
|
||||
const base = `/documents/${documentId}?commentId=${commentId}`;
|
||||
return annotationId ? `${base}&annotationId=${annotationId}` : base;
|
||||
}
|
||||
Reference in New Issue
Block a user