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