import{slicedToArray as e,defineProperty as t}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import r,{forwardRef as o}from"react";import a from"classnames";import{getTestId as l}from"../../../../tests/testIds.js";import{ComponentDefaultTestId as s}from"../../../../tests/constants.js";import i from"./ModalBasicLayout.module.scss.js";import m from"../../../Divider/Divider.js";import n from"../ModalFooterShadow.js";import c from"../ModalLayoutScrollableContent.js";import d from"../useLayoutScrolledContent.js";import f from"../../../../../components/layout/dist/Flex/Flex.js";var p=o((function(o,p){var u=o.children,j=o.className,S=o.id,v=o["data-testid"],y=d(),E=y.ref,h=y.isContentScrolled,N=y.isScrollable,A=y.isScrolledToEnd,C=y.onScroll,L=r.Children.toArray(u),M=e(L,2),_=M[0],g=M[1];return r.createElement(r.Fragment,null,r.createElement(f,{direction:"column",align:"start",ref:p,className:a(i.layout,j),id:S,"data-testid":v||l(s.MODAL_NEXT_BASIC_LAYOUT,S)},r.createElement("div",{className:i.header},_),r.createElement(m,{className:a(i.divider,t({},i.showDivider,h)),withoutMargin:!0}),r.createElement(c,{onScroll:C,className:i.content,ref:E},g)),N&&r.createElement(n,{show:!A}))}));export{p as default};
//# sourceMappingURL=ModalBasicLayout.js.map
