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>
41 lines
1005 B
TypeScript
41 lines
1005 B
TypeScript
"use client";
|
|
|
|
export interface TabItem {
|
|
id: string;
|
|
label: string;
|
|
}
|
|
|
|
interface TabsProps {
|
|
tabs: TabItem[];
|
|
active: string;
|
|
onChange: (id: string) => void;
|
|
}
|
|
|
|
// Simple underline tab strip used on the template detail page to switch between
|
|
// the editor and the preview panels.
|
|
export function Tabs({ tabs, active, onChange }: TabsProps) {
|
|
return (
|
|
<div className="border-b border-ink/10">
|
|
<nav className="flex gap-4">
|
|
{tabs.map((tab) => {
|
|
const isActive = tab.id === active;
|
|
return (
|
|
<button
|
|
key={tab.id}
|
|
type="button"
|
|
onClick={() => onChange(tab.id)}
|
|
className={`-mb-px border-b-2 px-1 py-2 text-sm ${
|
|
isActive
|
|
? "border-accent text-accent"
|
|
: "border-transparent text-ink/50 hover:text-ink/80"
|
|
}`}
|
|
>
|
|
{tab.label}
|
|
</button>
|
|
);
|
|
})}
|
|
</nav>
|
|
</div>
|
|
);
|
|
}
|