"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),r=require("../styles/RuleAccordion.module.css.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(t);exports.default=function(t){var i=t.inheritance,s=t.inheritedLabel,l=void 0===s?"Inheritance":s;return!i||i.length<=0?null:a.jsxs("div",e.__assign({className:r.default.inheritanceBreadcrumb},{children:[a.jsx(n.GitBranch,{size:12,className:r.default.inheritanceIcon}),a.jsx("span",e.__assign({className:r.default.inheritanceLabel},{children:l})),a.jsx("div",e.__assign({className:r.default.inheritanceItems},{children:i.map(function(t,s){var l=s===i.length-1,u=l?"".concat(r.default.inheritanceItem," ").concat(r.default.inheritanceItemCurrent):"".concat(r.default.inheritanceItem," ").concat(r.default.inheritanceItemDefault);return a.jsxs(c.default.Fragment,{children:[a.jsx("span",e.__assign({className:u},{children:t})),!l&&a.jsx(n.MoveRight,{size:10,className:r.default.inheritanceArrow})]},s)})}))]}))};
//# sourceMappingURL=InheritanceBreadcrumb.js.map
