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
1011 B
TypeScript
36 lines
1011 B
TypeScript
import type { EvidenceSourceType } from "@/lib/evidence/types";
|
||
import { SOURCE_TYPE_LABELS } from "@/components/evidence/labels";
|
||
|
||
// Small, reusable presentational badges for source type and tags.
|
||
|
||
export function SourceTypeBadge({ type }: { type: EvidenceSourceType }) {
|
||
return (
|
||
<span className="inline-flex items-center rounded-full border border-ink/15 bg-paper px-2 py-0.5 text-xs text-ink/60">
|
||
{SOURCE_TYPE_LABELS[type]}
|
||
</span>
|
||
);
|
||
}
|
||
|
||
interface TagBadgeProps {
|
||
tag: string;
|
||
onRemove?: (tag: string) => void;
|
||
}
|
||
|
||
export function TagBadge({ tag, onRemove }: TagBadgeProps) {
|
||
return (
|
||
<span className="inline-flex items-center gap-1 rounded-full bg-accent/10 px-2 py-0.5 text-xs text-accent">
|
||
{tag}
|
||
{onRemove ? (
|
||
<button
|
||
type="button"
|
||
onClick={() => onRemove(tag)}
|
||
className="text-accent/70 hover:text-accent"
|
||
aria-label={`Remove tag ${tag}`}
|
||
>
|
||
×
|
||
</button>
|
||
) : null}
|
||
</span>
|
||
);
|
||
}
|