import{aJ as a,ao as e,c8 as d,bX as m,b5 as g}from"./app-k0jcl5PQ.js";import{A as h}from"./wCY37Ze3.chunk.js";function u(o){const c=a.useMemo(()=>o.actions.sort((n,i)=>n.order-i.order),[o.actions]),t=[],s=[];c.forEach(n=>{n.button?t.push(n):s.push(n)});let l="d-flex";return o.className&&(l+=` ${o.className}`),!t.length&&!s.length?e.jsx(e.Fragment,{}):e.jsxs("div",{className:l,children:[t.length?t.map((n,i)=>e.jsx(a.Fragment,{children:(()=>{if(n.label){const r=d.isFunction(n.label)?n.label():e.jsx(e.Fragment,{children:n.label});return e.jsx(m,{appLink:n.appLink,href:n.href,onClick:n.onClick,svg:n.svg,svgSize:o.dropdownToggleSvgSize,className:n.className,tooltip:n.tooltip,showSpinner:n.showSpinner,analyticsData:n.analyticsData,analyticsOptions:n.analyticsOptions,openInNewTab:n.openInNewTab,disabled:n.disabled,children:r})}return e.jsx(g,{appLink:n.appLink,href:n.href,onClick:n.onClick,svg:n.svg,className:n.className,analyticsData:n.analyticsData,analyticsOptions:n.analyticsOptions,openInNewTab:n.openInNewTab,disabled:n.disabled,showBorder:n.showBorder,customSize:o.customSize,ariaLabel:n.tooltip,tooltip:n.tooltip})})()},i)):e.jsx(e.Fragment,{}),o.sortComponent&&o.sortComponent,s.length?e.jsx(h,{actions:s,dropdownToggleClassName:o.actionsDropdownClassName,dropdownToggleSvgSize:o.dropdownToggleSvgSize,fetchMore:o.fetchMore}):e.jsx(e.Fragment,{})]})}export{u as A};
//# sourceMappingURL=BDviDDog.chunk.js.map
