import{_ as __rest,a as __assign}from"./tslib.es6-bjGg6Bxl.js";import React__default,{Children}from"react";import{I as Icon}from"./Icon.component-7-ap-6Ys.js";import{S as Stack}from"./Stack.component-BNRLhyTo.js";import{B as BreadcrumbItem}from"./BreadcrumbItem.component-himz8R38.js";var Breadcrumb=function(a){var b=a.children,c=void 0===b?null:b,d=a.className,e=void 0===d?"":d,f=__rest(a,["children","className"]),g=Children.toArray(c).filter(React__default.isValidElement),h=g.map(function(a,b){return React__default.createElement(React__default.Fragment,{key:b},React__default.createElement(BreadcrumbItem,__assign({},a.props)),b<g.length-1&&React__default.createElement(Icon,{icon:"chevronRight"}))});return React__default.createElement(Stack,__assign({className:"juno-breadcrumb ".concat(e),gap:"1"},f),h)};export{Breadcrumb as B};