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

45 lines
1.1 KiB
TypeScript

"use client";
interface SearchBarProps {
value: string;
activeSearch: string;
onChange: (value: string) => void;
onSubmit: (e: React.FormEvent) => void;
onClear: () => void;
}
// Title search form with an optional clear button when a search is active.
export function SearchBar({
value,
activeSearch,
onChange,
onSubmit,
onClear,
}: SearchBarProps) {
return (
<form onSubmit={onSubmit} className="mt-6 flex items-center gap-2">
<input
value={value}
onChange={(e) => onChange(e.target.value)}
placeholder="Search by title..."
className="flex-1 text-sm border border-ink/15 rounded px-3 py-2 bg-white focus:outline-none focus:border-accent"
/>
<button
type="submit"
className="text-sm border border-ink/15 rounded px-3 py-2 hover:border-accent"
>
Search
</button>
{activeSearch ? (
<button
type="button"
onClick={onClear}
className="text-sm text-ink/50 hover:text-ink/80"
>
Clear
</button>
) : null}
</form>
);
}