import{__assign as e}from"tslib";import{jsxs as c,jsx as n}from"react/jsx-runtime";import t from"../../styles/ScopeTree.module.css.js";var i=function(i){var o=i.icon,l=i.label,a=i.badgeCount,r=i.isActive,s=void 0!==r&&r,d=i.onClick;return c("div",e({className:"".concat(t.pill," ").concat(s?t.pillActive:""),onClick:d,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d())}},{children:[n("div",e({className:t.pillIcon},{children:n(o,{size:18,strokeWidth:s?2.5:2})})),n("span",e({className:t.pillLabel},{children:l})),"number"==typeof a&&n("span",e({className:"".concat(t.badge," ").concat(s?t.badgeActive:"")},{children:a}))]}))};export{i as TreeSectionItem};
//# sourceMappingURL=TreeSectionItem.js.map
