Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a deterministic verification core: clinical-trial claims checked against ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI recomputed in code, oracle-tested), code-enforced exact-span grounding, and multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing at scale (unpdf + Docling), agentic workflows, Claude Science connector, compliance/audit, billing, public API, and more. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import type { DocumentDetail } from "@/lib/documents/types";
|
|
|
|
// Three-up stat cards for a document: page count, storage key, and created date.
|
|
|
|
export function DocumentStats({ doc }: { doc: DocumentDetail }) {
|
|
return (
|
|
<div className="mt-6 grid grid-cols-1 sm:grid-cols-3 gap-4">
|
|
<div className="bg-white border border-ink/15 rounded-lg p-4">
|
|
<div className="text-xs text-ink/40">Pages</div>
|
|
<div className="mt-1 text-lg font-semibold text-ink/80">
|
|
{doc.page_count}
|
|
</div>
|
|
</div>
|
|
<div className="bg-white border border-ink/15 rounded-lg p-4">
|
|
<div className="text-xs text-ink/40">Storage key</div>
|
|
<div className="mt-1 text-sm text-ink/70 break-all">
|
|
{doc.storage_key ?? "—"}
|
|
</div>
|
|
</div>
|
|
<div className="bg-white border border-ink/15 rounded-lg p-4">
|
|
<div className="text-xs text-ink/40">Created</div>
|
|
<div className="mt-1 text-sm text-ink/70">
|
|
{new Date(doc.created_at).toLocaleString()}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|