papertrail/components/help/MessageBubble.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

31 lines
883 B
TypeScript

"use client";
// One message in a ticket thread. Highlights the current user's own messages.
import type { TicketMessageDto } from "@/app/console/help/api";
export function MessageBubble({
message,
isMine,
}: {
message: TicketMessageDto;
isMine: boolean;
}) {
return (
<div
className={`rounded-lg border p-4 ${
isMine ? "border-accent/30 bg-accent/5" : "border-ink/10 bg-white"
}`}
>
<div className="flex items-center justify-between gap-3">
<span className="text-xs font-medium text-ink/70">
{isMine ? "You" : message.authorName || message.authorEmail || "Unknown"}
</span>
<span className="text-xs text-ink/40">
{new Date(message.createdAt).toLocaleString()}
</span>
</div>
<p className="mt-2 text-sm text-ink/70 whitespace-pre-wrap">{message.body}</p>
</div>
);
}