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