"use strict";const a=require("react/jsx-runtime"),o=require("react"),i=require("../tools/tools.cjs"),v=require("./breadcrumb-basic.cjs"),j=require("./breadcrumb-item.cjs"),O=(l=[])=>l.map((r,c)=>({...r,id:r.id??c})),p=function(r){const{as:c="nav",className:u,dropOldClass:d,onClick:t,options:B,style:m,variables:b,...x}=r,[n]=o.useState(O(B)),y=o.useMemo(()=>{const e=i.classx(!d&&"",u),s=i.stylex((_,q)=>({tKey:i.convertBsKeyToVar(q)}),b,m);return{className:e,style:s}},[u,d,m,b]),C=o.useCallback(e=>{const s=n[e];t==null||t(s.id)},[t,n]);return a.jsx(c,{...x,...y,children:a.jsx(v.BreadcrumbBasic,{children:n.map((e,s)=>a.jsx(j.BreadcrumbItem,{active:e.active,onClick:()=>C(s),children:e.title},e.id))})})};p.displayName="BRL.Breadcrumb";exports.Breadcrumb=p;
//# sourceMappingURL=breadcrumb.cjs.map
