Ship the delivery platform UI under modules/delivery with thin app routes, BFF proxy, CRUD for phase 10.0-10.1 APIs, and capability-gated future screens. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
418 B
TypeScript
11 lines
418 B
TypeScript
"use client";
|
|
|
|
import { Badge } from "@/components/ds";
|
|
import { driverStatusLabels, lifecycleStatusLabels, lifecycleStatusTone } from "./tokens";
|
|
|
|
export function DeliveryStatusChip({ status }: { status: string }) {
|
|
const label = driverStatusLabels[status] ?? lifecycleStatusLabels[status] ?? status;
|
|
const tone = lifecycleStatusTone[status] ?? "default";
|
|
return <Badge tone={tone}>{label}</Badge>;
|
|
}
|