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>
35 lines
925 B
TypeScript
35 lines
925 B
TypeScript
interface MetricCard {
|
|
key: string;
|
|
label: string;
|
|
value: number | null;
|
|
}
|
|
|
|
interface MetricCardsProps {
|
|
cards: MetricCard[];
|
|
loading: boolean;
|
|
}
|
|
|
|
// Grid of headline metric cards. A null value or loading state renders a dash
|
|
// placeholder.
|
|
export function MetricCards({ cards, loading }: MetricCardsProps) {
|
|
return (
|
|
<div className="mt-6 grid grid-cols-2 sm:grid-cols-3 gap-4">
|
|
{cards.map((card) => (
|
|
<div
|
|
key={card.key}
|
|
className="bg-white border border-ink/10 rounded-lg p-4"
|
|
>
|
|
<div className="text-xs text-ink/40">{card.label}</div>
|
|
<div className="mt-1 text-2xl font-semibold text-ink/80 tabular-nums">
|
|
{loading || card.value === null ? (
|
|
<span className="text-ink/30">—</span>
|
|
) : (
|
|
card.value.toLocaleString()
|
|
)}
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|