import{__assign as o}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{Plus as i}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";var d=function(d){var a=d.label,c=d.onAdd,l=d.disabled,s=void 0!==l&&l,n=d.tooltip;return t("button",o({className:"".concat(r.addAction," ").concat(s?r.disabled:""),onClick:s?void 0:c,disabled:s,title:n,style:s?{opacity:.5,cursor:"not-allowed"}:{}},{children:[e("span",o({className:r.addIcon},{children:e(i,{size:16,strokeWidth:2.5})})),a]}))};export{d as TreeAddAction};
//# sourceMappingURL=TreeAddAction.js.map
