Ship the full Communication portal (real SMS API, feature-locked future channels), BFF proxy, docs, snapshot, and phase handover. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
365 B
TypeScript
11 lines
365 B
TypeScript
"use client";
|
|
|
|
import { Badge } from "@/components/ds";
|
|
import { messageStatusLabels, messageStatusTone } from "./tokens";
|
|
|
|
export function CommunicationStatusChip({ status }: { status: string }) {
|
|
const label = messageStatusLabels[status] ?? status;
|
|
const tone = messageStatusTone[status] ?? "default";
|
|
return <Badge tone={tone}>{label}</Badge>;
|
|
}
|