Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: remove duplicate context component

Marc Seitz4171d6fa0350
diff --git a/ee/features/conversations/components/conversation-document-context.tsx b/ee/features/conversations/components/conversation-document-context.tsx
deleted file mode 100644
index 0df6a421..00000000
--- a/ee/features/conversations/components/conversation-document-context.tsx
+++ /dev/null
@@ -1,57 +0,0 @@
-import { BookOpenIcon, FileTextIcon } from "lucide-react";
-
-interface ConversationDocumentContextProps {
- dataroomDocument?: {
- document: {
- name: string;
- type?: string;
- };
- };
- documentPageNumber?: number | null;
- documentVersionNumber?: number | null;
- className?: string;
- showVersionNumber?: boolean; // Controls whether to show version info
-}
-
-export function ConversationDocumentContext({
- dataroomDocument,
- documentPageNumber,
- documentVersionNumber,
- className = "",
- showVersionNumber = false,
-}: ConversationDocumentContextProps) {
- if (!dataroomDocument) return null;
-
- const hasPageOrVersion =
- documentPageNumber || (showVersionNumber && documentVersionNumber);
-
- return (
- <div
- className={`flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 text-sm ${className}`}
- >
- <div className="flex min-w-0 flex-1 items-center gap-2">
- <FileTextIcon className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="truncate font-medium">
- {dataroomDocument.document.name}
- </span>
- </div>
-
- {hasPageOrVersion && (
- <div className="flex shrink-0 items-center gap-2 text-xs text-muted-foreground">
- {documentPageNumber && (
- <span className="flex items-center gap-1">
- <BookOpenIcon className="h-3 w-3" />
- Page {documentPageNumber}
- </span>
- )}
- {documentPageNumber && showVersionNumber && documentVersionNumber && (
- <span>•</span>
- )}
- {showVersionNumber && documentVersionNumber && (
- <span>v{documentVersionNumber}</span>
- )}
- </div>
- )}
- </div>
- );
-}