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>
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import { EXPORT_FORMATS, type ExportFormat } from "@/lib/dataexport/schemas";
|
|
import { FORMAT_LABELS } from "./shared";
|
|
|
|
interface FormatStepProps {
|
|
value: ExportFormat;
|
|
onChange: (format: ExportFormat) => void;
|
|
}
|
|
|
|
const FORMAT_HINTS: Record<ExportFormat, string> = {
|
|
csv: "Tabular, opens in spreadsheets. One row per record.",
|
|
json: "Structured array of objects. Best for programmatic use.",
|
|
};
|
|
|
|
// Wizard step 2: pick the output format (CSV or JSON).
|
|
export function FormatStep({ value, onChange }: FormatStepProps) {
|
|
return (
|
|
<fieldset>
|
|
<legend className="text-sm font-semibold text-ink/80">
|
|
Choose a format
|
|
</legend>
|
|
<div className="mt-3 grid gap-2 sm:grid-cols-2">
|
|
{EXPORT_FORMATS.map((format) => {
|
|
const selected = format === value;
|
|
return (
|
|
<button
|
|
key={format}
|
|
type="button"
|
|
onClick={() => onChange(format)}
|
|
className={`rounded-lg border p-3 text-left transition ${
|
|
selected
|
|
? "border-accent bg-accent/5"
|
|
: "border-ink/15 bg-white hover:bg-paper"
|
|
}`}
|
|
>
|
|
<span className="block text-sm font-medium text-ink/80">
|
|
{FORMAT_LABELS[format]}
|
|
</span>
|
|
<span className="mt-0.5 block text-xs text-ink/50">
|
|
{FORMAT_HINTS[format]}
|
|
</span>
|
|
</button>
|
|
);
|
|
})}
|
|
</div>
|
|
</fieldset>
|
|
);
|
|
}
|