"use strict";exports.id=9570,exports.ids=[9570],exports.modules={99570:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(16689),a=t.n(n),o=t(83339),d=t(55494);let useDropdownTrigger=({triggerRef:e})=>{let{toggle:r,dropdownTriggerRef:t,addDropdownTriggerRef:a,isOpen:o,id:s}=(0,d.x)();return(0,n.useImperativeHandle)(e,()=>t.current,[t]),{onClick:r,ref:a,"aria-expanded":o,"aria-controls":s,"aria-haspopup":"menu"}},s=(0,n.forwardRef)(function({testId:e="fs-dropdown-button",children:r,asChild:t=!1,...d},s){let i=useDropdownTrigger({triggerRef:s}),l=a().isValidElement(r)?(0,n.cloneElement)(r,{...i,...r.props}):r;return a().createElement(a().Fragment,null,t?l:a().createElement(o.Z,{"data-fs-dropdown-button":!0,"data-testid":e,variant:"tertiary",...i,...d},r))}),i=s}};