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>
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
"use client";
|
|
|
|
interface NewKeyRevealProps {
|
|
secret: string;
|
|
copied: boolean;
|
|
onCopy: () => void;
|
|
onDismiss: () => void;
|
|
}
|
|
|
|
// One-time reveal panel for a freshly created API key secret.
|
|
export function NewKeyReveal({
|
|
secret,
|
|
copied,
|
|
onCopy,
|
|
onDismiss,
|
|
}: NewKeyRevealProps) {
|
|
return (
|
|
<div className="mt-4 bg-white border border-accent/40 rounded-lg p-5">
|
|
<p className="text-sm font-medium text-ink/80">Copy your new key now</p>
|
|
<p className="mt-1 text-xs text-ink/40">
|
|
This is the only time the full key will be shown. Store it somewhere
|
|
safe.
|
|
</p>
|
|
<div className="mt-3 flex items-center gap-2">
|
|
<code className="flex-1 text-xs bg-paper rounded px-3 py-2 break-all text-ink/80">
|
|
{secret}
|
|
</code>
|
|
<button
|
|
onClick={onCopy}
|
|
className="text-sm border border-ink/15 rounded px-3 py-2 hover:border-accent shrink-0"
|
|
>
|
|
{copied ? "Copied" : "Copy"}
|
|
</button>
|
|
</div>
|
|
<button
|
|
onClick={onDismiss}
|
|
className="mt-3 text-xs text-ink/40 hover:underline"
|
|
>
|
|
Dismiss
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|