papertrail/app/_components/ExampleClaims.tsx
caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
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>
2026-07-08 07:21:22 +03:00

30 lines
885 B
TypeScript

import Link from "next/link";
import { DEMO_EXAMPLES } from "@/lib/demoExamples";
interface ExampleClaimsProps {
loading: boolean;
onSelect: (claim: string) => void;
}
export function ExampleClaims({ loading, onSelect }: ExampleClaimsProps) {
return (
<div className="mt-3 flex flex-wrap gap-2">
<span className="self-center text-xs text-ink/40">Try:</span>
{DEMO_EXAMPLES.map((ex) => (
<button
key={ex.id}
onClick={() => onSelect(ex.claim)}
disabled={loading}
title={ex.blurb}
className="rounded-full border border-ink/15 bg-white px-3 py-1 text-xs text-ink/70 hover:bg-ink/5 disabled:opacity-50"
>
{ex.label}
</button>
))}
<Link href="/recent" className="self-center text-xs text-accent hover:underline">
Recent checks →
</Link>
</div>
);
}