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