import{r as f,v as j,j as s,x as m,y as I,C as p}from"./index-Bf3Szspx.js";import{I as B}from"./Icon-SjE0NP4G.js";const z=f.forwardRef(function({square:e=!1,name:o="",children:c=null,iconProps:n={},disabled:l=!1,loading:r=!1,...t},u){const{square:i,circularProgress:x,...a}=j(t);return s.jsxs(m,{...t,disabled:l||r,classes:{...a,root:I(a.root,{[i]:e})},ref:u,children:[!!o&&s.jsx(B,{name:o,size:24,...n})||c,r&&s.jsx(p,{size:25,classes:{root:x}})]})});export{z as I};