import{j as e,ar as h,B as x,as as p}from"./index-dP1W1_bd.js";const C=({onClick:t,icon:n,tooltipText:o,secondaryTooltipText:i,sx:s={},disabled:r=!1,borderless:a=!1,withShadow:d=!1,size:c,...l})=>e.jsx(h,{mainText:o,secondaryText:i,disabled:!o,children:e.jsx(x,{onClick:r?void 0:t,disabled:r,sx:{width:"34px",height:"32px",...d?{boxShadow:"secondary"}:{},backgroundColor:a?"transparent":"white",justifyContent:"center",alignItems:"center",borderStyle:"solid",borderWidth:a?"0px":"1px",borderColor:"grayShade1",cursor:"pointer",":hover":{borderColor:"black",backgroundColor:"grayShade3"},":active":{backgroundColor:"primaryShade2"},...s},...l,children:e.jsx(p,{width:"30px",height:"30px",display:"inline-flex",justifyContent:"center",alignItems:"center",icon:n,size:c,backgroundColor:r?"grayShade2":void 0})})});export{C};
