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
import type { Tool } from "./types";
|
|
import { ToolCard } from "./ToolCard";
|
|
|
|
interface ToolGridProps {
|
|
tools: Tool[];
|
|
loading: boolean;
|
|
error: string | null;
|
|
canRun: boolean;
|
|
onTry: (tool: Tool) => void;
|
|
}
|
|
|
|
// The tool catalog: loading / error / empty states, otherwise a responsive grid
|
|
// of ToolCards.
|
|
export function ToolGrid({ tools, loading, error, canRun, onTry }: ToolGridProps) {
|
|
if (loading) {
|
|
return (
|
|
<div className="bg-white border border-ink/10 rounded-lg p-5 text-sm text-ink/40">
|
|
Loading tools...
|
|
</div>
|
|
);
|
|
}
|
|
if (error) {
|
|
return (
|
|
<div className="bg-white border border-ink/10 rounded-lg p-5 text-sm text-red-600">
|
|
{error}
|
|
</div>
|
|
);
|
|
}
|
|
if (tools.length === 0) {
|
|
return (
|
|
<div className="bg-white border border-ink/10 rounded-lg p-5 text-sm text-ink/40">
|
|
No tools are available.
|
|
</div>
|
|
);
|
|
}
|
|
return (
|
|
<div className="grid gap-4 sm:grid-cols-2">
|
|
{tools.map((tool) => (
|
|
<ToolCard key={tool.name} tool={tool} canRun={canRun} onTry={onTry} />
|
|
))}
|
|
</div>
|
|
);
|
|
}
|