"use strict";const s=require("react/jsx-runtime"),o=require("react"),r=require("../tools/tools.cjs"),d=require("./pagination-item.cjs"),P=require("./pagination-link.cjs"),v=require("./pagination-nav.cjs"),_=require("./pagination-span.cjs"),h=(c=[])=>c.map((t,i)=>({...t,id:t.id??i})),a=function(t){const{alignment:i,as:y="ul",className:l,dropOldClass:p,navProps:m,options:f,size:e,style:g,variables:u,...k}=t,[q]=o.useState(h(f)),N=o.useMemo(()=>{const n=r.classx(!p&&"pagination",e&&`pagination-${e}`,i&&`justify-content-${i}`,l),x=r.stylex((j,B)=>({tKey:r.convertBsKeyToVar(B)}),u,g);return{className:n,style:x}},[i,l,p,e,g,u]);return s.jsx(v.PaginationNav,{...m,children:s.jsx(y,{...k,...N,children:q.map(n=>o.createElement(d.PaginationItem,{...n.itemProps,active:n.active,disabled:n.disabled,key:n.id},s.jsx(P.PaginationLink,{href:n.href,...n.linkProps,children:n.link})))})})};a.Item=d.PaginationItem;a.Nav=v.PaginationNav;a.Link=P.PaginationLink;a.Span=_.PaginationSpan;a.displayName="BRL.PaginationBasic";exports.PaginationBasic=a;
//# sourceMappingURL=pagination-basic.cjs.map
