import e from"../../node_modules/lodash/isNil.js";import r from"react";import t from"./BreadcrumbSubItem.js";import{withEllipsis as a}from"../../utils/stringUtils.js";import{Breadcrumb as m,BreadcrumbList as l,BreadcrumbItem as n,BreadcrumbLink as s,BreadcrumbPage as c,BreadcrumbSeparator as o}from"../../node_modules/@cortexapps/react-plugin-ui/dist/index.js";const u=({items:u,showIcon:i=!1})=>r.createElement(m,null,r.createElement(l,null,u.map((({name:m,names:l,...i},d)=>{const b=d===u.length-1,p=!e(i.href)||!e(i.onClick),B=p?{"aria-label":`Breadcrumb-${m??d}`,...i}:{},E=r.createElement(r.Fragment,null,m&&a(m,40),l&&r.createElement(t,{names:l}));return r.createElement(r.Fragment,{key:`Breadcrumb-${d}`},r.createElement(n,null,p?r.createElement(s,{...B},E):r.createElement(c,null,E)),!b&&r.createElement(o,null))}))));export{u as default};
//# sourceMappingURL=Breadcrumb.js.map
