import { B as n, j as e, a as l, b as u, c as d, d as B, D as c } from "./index-CsBCemCF.js";
import { memo as m } from "react";
function p(i) {
  const {
    disabled: s,
    element: t,
    widgetMgr: o,
    fragmentId: r
  } = i;
  let a = n.SECONDARY;
  return t.type === "primary" ? a = n.PRIMARY : t.type === "tertiary" && (a = n.TERTIARY), /* @__PURE__ */ e.jsx(l, { className: "stButton", "data-testid": "stButton", children: /* @__PURE__ */ e.jsx(
    u,
    {
      help: t.help,
      containerWidth: !0,
      children: /* @__PURE__ */ e.jsx(d, { kind: a, size: B.SMALL, disabled: s, containerWidth: !0, onClick: () => o.setTriggerValue(t, {
        fromUi: !0
      }, r), children: /* @__PURE__ */ e.jsx(c, { icon: t.icon, label: t.label }) })
    }
  ) });
}
const h = m(p);
export {
  h as default
};
//# sourceMappingURL=index-DTykN4zG.js.map
