TorbatYar/frontend/modules/delivery/design-system/DeliveryStatusChip.tsx
Mortezakoohjani 7978970783 feat(delivery): add Torbat Driver frontend module with real API wiring.
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>
2026-07-27 12:02:01 +03:30

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