import{n as e}from"./chunk-DrgAwqJ9.js";import{n as t,t as n}from"./jsx-runtime-C3uB2UIS.js";import{d as r}from"./useTranslation-DVVidJl_.js";import{t as i}from"./UnstyledButton-BprPCIHx.js";var a=`_button_13vu4_8`,o=`_destructive_13vu4_110`,s={button:a,"icon-only":`_icon-only_13vu4_53`,"has-icon":`_has-icon_13vu4_60`,destructive:o},c=n(),l=e(r(),1),u=(0,e(t(),1).forwardRef)(function({as:e,kind:t=`primary`,size:n=`lg`,children:r,className:a,iconOnly:o,Icon:u,destructive:d,disabled:f,...p},m){let[h,g]=t===`destructive`?[`secondary`,!0]:[t,d],_=(0,l.default)(s.button,a,{[s[`has-icon`]]:u,[s[`icon-only`]]:o,[s.destructive]:g}),v=o&&n===`lg`?24:20;return(0,c.jsxs)(i,{...p,as:e||`button`,ref:m,className:_,"data-size":n,"data-kind":h,tabIndex:0,disabled:f,children:[u&&(0,c.jsx)(u,{width:v,height:v,className:s.icon,"aria-hidden":!0}),r]})});export{u as t};
//# sourceMappingURL=Button-BZSwK8Kg.js.map