import{jsx as o}from"react/jsx-runtime";import i from"classnames";import{forwardRef as e,useRef as n,useCallback as r}from"react";import c from"../../../hooks/useMergeRefs.js";import a from"../../ExpandCollapse/ExpandCollapse.js";var l=e((function(e,l){var s=e.children,t=void 0===s?null:s,d=e.title,m=void 0===d?"":d,p=e.className,f=void 0===p?"":p,u=e.iconSize,v=void 0===u?24:u,C=e.id,j=e.open,k=e.onClick,x=e.onClickAccordionCallback,h=n(null),b=c({refs:[l,h]}),g=r((function(){x&&x(),k&&k()}),[x,k]);return o("div",Object.assign({ref:b,className:i("accordion-item",f),id:C},{children:o(a,Object.assign({iconSize:v,id:"expand-collapse--".concat(C),onClick:g,open:j,title:m},{children:t}))}))}));export{l as default};
