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