import{r as c,b7 as s,j as e,b8 as B,bp as p,b6 as f,b9 as h}from"./index.qnLB2_zl.js";function m(n){const{disabled:o,element:t,widgetMgr:l,width:a,fragmentId:r}=n,d={width:a};let i=s.SECONDARY;t.type==="primary"?i=s.PRIMARY:t.type==="tertiary"&&(i=s.TERTIARY);const u=t.help?a:!0;return e("div",{className:"stButton","data-testid":"stButton",style:d,children:e(B,{help:t.help,children:e(p,{kind:i,size:f.SMALL,disabled:o,fluidWidth:t.useContainerWidth?u:!1,onClick:()=>l.setTriggerValue(t,{fromUi:!0},r),children:e(h,{icon:t.icon,label:t.label})})})})}const y=c.memo(m);export{y as default};
