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>
36 lines
956 B
TypeScript
36 lines
956 B
TypeScript
import type { ReactNode } from "react";
|
|
import Link from "next/link";
|
|
|
|
// Header block for RBAC module pages: back link, title, subtitle, and an
|
|
// optional action slot (e.g. a "New role" button).
|
|
export function ModuleHeader({
|
|
title,
|
|
subtitle,
|
|
backHref,
|
|
backLabel,
|
|
action,
|
|
}: {
|
|
title: string;
|
|
subtitle?: string;
|
|
backHref?: string;
|
|
backLabel?: string;
|
|
action?: ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="mb-6">
|
|
{backHref ? (
|
|
<Link href={backHref} className="text-sm text-accent hover:underline">
|
|
← {backLabel ?? "Back"}
|
|
</Link>
|
|
) : null}
|
|
<div className="mt-2 flex items-start justify-between gap-4">
|
|
<div>
|
|
<h1 className="text-2xl font-semibold text-ink/80">{title}</h1>
|
|
{subtitle ? <p className="mt-1 text-sm text-ink/40">{subtitle}</p> : null}
|
|
</div>
|
|
{action ? <div className="shrink-0">{action}</div> : null}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|