import { jsx, jsxs } from "react/jsx-runtime";
import { Badge } from "./badge.js";
import { cn } from "@open-mercato/shared/lib/utils";
const dotColors = {
  success: "bg-status-success-icon",
  warning: "bg-status-warning-icon",
  error: "bg-status-error-icon",
  info: "bg-status-info-icon",
  neutral: "bg-status-neutral-icon"
};
function StatusBadge({
  variant,
  children,
  dot = false,
  className
}) {
  return /* @__PURE__ */ jsxs(
    Badge,
    {
      variant,
      className: cn(dot && "gap-1.5", className),
      children: [
        dot && /* @__PURE__ */ jsx(
          "span",
          {
            className: cn("inline-block h-1.5 w-1.5 rounded-full shrink-0", dotColors[variant]),
            "aria-hidden": "true"
          }
        ),
        children
      ]
    }
  );
}
export {
  StatusBadge
};
//# sourceMappingURL=status-badge.js.map
