"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UIStandardLayer = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const system_1 = require("@mui/system");
const UILayer_1 = require("./UILayer");
const UIButton_1 = require("./UIButton");
const UIErrorDisplay_1 = require("./UIErrorDisplay");
const UILabel_1 = require("./UILabel");
function UIStandardLayer(props) {
    return ((0, jsx_runtime_1.jsx)(UILayer_1.UILayer, { onClose: props.onClose, open: props.open, showCloseButton: true, fullScreen: props.fullScreen, maxWidth: props.maxWidth, renderUI: () => {
            return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(system_1.Box, { display: "flex", flexDirection: "column", padding: "20px", children: [(0, jsx_runtime_1.jsx)(system_1.Box, { paddingBottom: "10px", display: "flex", flexDirection: "row", justifyContent: "left", children: (0, jsx_runtime_1.jsx)(UILabel_1.UILabel, { type: "section_title", children: props.title }) }), (0, jsx_runtime_1.jsx)(UIErrorDisplay_1.UIErrorDisplay, { validationBreaks: props.validationIssues }), (0, jsx_runtime_1.jsx)(system_1.Box, { paddingTop: "10px", paddingBottom: "10px", display: "flex", flexDirection: "column", justifyContent: "left", children: props.renderLayer() }), !props.secondaryActionText && props.actionText && ((0, jsx_runtime_1.jsx)(system_1.Box, { display: "flex", flexDirection: "row", paddingTop: "15px", justifyContent: "right", children: (0, jsx_runtime_1.jsx)(UIButton_1.UIButton, { onClick: props.onSet, children: props.actionText }) })), props.secondaryActionText && props.actionText && ((0, jsx_runtime_1.jsxs)(system_1.Box, { display: "flex", flexDirection: "row", paddingTop: "15px", justifyContent: "space-between", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(UIButton_1.UIButton, { onClick: props.secondaryAction, variant: "link_underlined", children: props.secondaryActionText }), (0, jsx_runtime_1.jsx)(UIButton_1.UIButton, { onClick: props.onSet, children: props.actionText })] }))] }) }));
        } }));
}
exports.UIStandardLayer = UIStandardLayer;
//# sourceMappingURL=UIStandardLayer.js.map