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>
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
"use client";
|
|
|
|
export type DetailTab = "config" | "syncs" | "events";
|
|
|
|
interface TabsProps {
|
|
active: DetailTab;
|
|
onChange: (tab: DetailTab) => void;
|
|
}
|
|
|
|
const TAB_DEFS: ReadonlyArray<{ key: DetailTab; label: string }> = [
|
|
{ key: "config", label: "Configuration" },
|
|
{ key: "syncs", label: "Sync history" },
|
|
{ key: "events", label: "Events" },
|
|
];
|
|
|
|
// In-page tab switcher for the connector detail view.
|
|
export function Tabs({ active, onChange }: TabsProps) {
|
|
return (
|
|
<nav className="mt-6 flex gap-1 border-b border-ink/10">
|
|
{TAB_DEFS.map((t) => {
|
|
const isActive = t.key === active;
|
|
return (
|
|
<button
|
|
key={t.key}
|
|
onClick={() => onChange(t.key)}
|
|
className={
|
|
isActive
|
|
? "border-b-2 border-accent px-3 py-2 text-sm font-medium text-ink/80"
|
|
: "border-b-2 border-transparent px-3 py-2 text-sm text-ink/50 hover:text-ink/80"
|
|
}
|
|
>
|
|
{t.label}
|
|
</button>
|
|
);
|
|
})}
|
|
</nav>
|
|
);
|
|
}
|