papertrail/components/views/EmptyState.tsx
caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
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>
2026-07-08 07:21:22 +03:00

33 lines
884 B
TypeScript

import Link from "next/link";
interface EmptyStateProps {
title: string;
message: string;
actionHref?: string;
actionLabel?: string;
}
// Neutral empty-state panel shared across list/detail views when there's nothing
// to show yet. Optional action nudges the user toward creating something.
export function EmptyState({
title,
message,
actionHref,
actionLabel,
}: EmptyStateProps) {
return (
<div className="bg-white border border-ink/10 rounded-lg p-8 text-center">
<p className="text-sm font-medium text-ink/70">{title}</p>
<p className="mt-1 text-sm text-ink/40">{message}</p>
{actionHref && actionLabel ? (
<Link
href={actionHref}
className="mt-4 inline-block text-sm bg-accent text-white rounded px-3 py-2 hover:opacity-90"
>
{actionLabel}
</Link>
) : null}
</div>
);
}