"use strict";const a=require("react/jsx-runtime"),N=require("react"),f=require("../button/button.cjs"),e=require("../tools/tools.cjs"),l=function(i){const{as:d="div",buttonProps:s,children:u,className:o,collapsed:r,dropOldClass:t,style:c,variables:n,...m}=i,p=N.useMemo(()=>{const x=e.classx(!t&&"accordion-header h2",o),y=e.stylex((A,h)=>({tKey:e.convertBsKeyToVar(h)}),n,c);return{className:x,style:y}},[o,t,c,n]);return a.jsx(d,{...m,...p,children:a.jsx(f.Button,{"aria-expanded":r?"false":"true",...e.mergeProps(s,{className:e.classxWithOptions(null,s==null?void 0:s.className,"accordion-button",r&&"collapsed")}),children:u})})};l.displayName="BRL.AccordionHeader";exports.AccordionHeader=l;
//# sourceMappingURL=accordion-header.cjs.map
