"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>;
}
