import{j as t}from"./vendor-react-wBh_31cN.js";import{G as d,a0 as f,d as p}from"./index-dNe6i2rS.js";import{T as u}from"./tooltip-DFFgUYh6.js";const C=({onClick:a,icon:e,tooltipText:n,disabled:s=!1,borderless:i=!1,withShadow:r=!1,size:c="md",className:l,"data-test":m})=>{const o=t.jsx(d,{type:"button",variant:i?"ghost":"outline",size:"icon",onClick:s?void 0:a,disabled:s,"data-test":m,className:p(r&&"shadow-sm",l),children:t.jsx(f,{icon:e,size:c})});return t.jsx(u,{content:n,disabled:!n,children:s?t.jsx("span",{className:"inline-flex",children:o}):o})};export{C};
