Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-22 18:39:33 +00:00
co-authored by renee-png
parent 2d9d3fbaea
commit 354751a65d
+3
View File
@@ -17,6 +17,7 @@ import {
Eye,
ExternalLink,
Pencil,
Share2,
} from "lucide-react";
import { formatDate } from "@/lib/format";
import { toast } from "sonner";
@@ -26,6 +27,7 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { ShareDocumentDialog } from "./share-document-dialog";
const MAX_BYTES = 150 * 1024 * 1024;
@@ -41,6 +43,7 @@ export function CaseDocumentsTab({ caseId }: { caseId: string }) {
const [previewDoc, setPreviewDoc] = useState<any | null>(null);
const [previewUrl, setPreviewUrl] = useState<string | null>(null);
const [previewLoading, setPreviewLoading] = useState(false);
const [shareDoc, setShareDoc] = useState<any | null>(null);
const fileRef = useRef<HTMLInputElement>(null);
const load = useCallback(async () => {