import{jsxs as t,Fragment as n,jsx as i}from"react/jsx-runtime";import e from"classnames";import{forwardRef as s,useCallback as o,useMemo as r}from"react";import{Paper as p}from"../Paper/Paper.js";import{AppSettings as m}from"../AppSettings/AppSettings.js";import"../AppSettings/AppSettings.constants.js";import{useAppSettingPinning as a}from"../AppSettings/AppSettingsPinningContext.js";import{AppContainerTestIds as c}from"./AppContainer.constants.js";import l from"./AppContainer.scss.js";var d=s((function(s,d){var f=s.className,g=s.children,h=s.dimensions,S=a(),u=S.isPinned,A=S.close,j=o((function(){A(!0)}),[A]),v=r((function(){return{height:"".concat(null==h?void 0:h.height,"px")}}),[null==h?void 0:h.height]);return t(n,{children:[i("div",{className:e(l.content,u&&l.withPinnedSettings,f),"data-testid":c.ContentTestId,ref:d,children:g}),!!h&&u&&i(p,{className:l.pinnedSettings,children:i(m,{rootStyles:v,onClose:j})})]})}));export{d as Content};
//# sourceMappingURL=Content.js.map
