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