"use client";
import { jsx } from "react/jsx-runtime";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { StatusBadge } from "@open-mercato/ui/primitives/status-badge";
const shippingStatusVariantMap = {
  pending: "neutral",
  label_created: "info",
  picked_up: "info",
  in_transit: "info",
  out_for_delivery: "info",
  delivered: "success",
  failed_delivery: "error",
  returned: "warning",
  cancelled: "error",
  unknown: "neutral"
};
function ShippingStatusBadgeWidget({ status }) {
  const t = useT();
  const variant = shippingStatusVariantMap[status] ?? "neutral";
  return /* @__PURE__ */ jsx(StatusBadge, { variant, dot: true, children: t(`shipping_carriers.status.${status}`, status) });
}
export {
  ShippingStatusBadgeWidget as default
};
//# sourceMappingURL=widget.client.js.map
