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