import { jsxs as s, jsx as u } from "react/jsx-runtime";
import { t as d } from "../../classix-DG18itHa.js";
import { Icon as p } from "../icon/index.js";
import '../../assets/index32.css';const _ = "_button_18vba_1", b = "_danger_18vba_23", c = "_minimal_18vba_36", f = "_primary_18vba_43", t = {
  button: _,
  danger: b,
  minimal: c,
  primary: f
}, g = {
  danger: t.danger,
  default: t.default,
  minimal: t.minimal,
  primary: t.primary
};
function x({
  children: m,
  className: r,
  disabled: i = !1,
  icon: n,
  onClick: o,
  ref: e,
  variant: a = "default",
  ...l
}) {
  return /* @__PURE__ */ s("button", { className: d(t.button, g[a], r), disabled: i, onClick: o, ref: e, type: "button", ...l, "data-component": "button", children: [
    n && /* @__PURE__ */ u(p, { gap: "right", name: n, size: "small", variant: a === "minimal" || a === "default" ? "default" : "white" }),
    m
  ] });
}
export {
  x as Button
};
//# sourceMappingURL=index.js.map
