"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressionEditLayer = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const UIStandardLayer_1 = require("../CommonUI/BuildlingBlocks/UIStandardLayer");
const material_1 = require("@mui/material");
const ExpressionBuilder_1 = require("./ExpressionBuilder");
function ExpressionEditLayer(props) {
    return ((0, jsx_runtime_1.jsx)(UIStandardLayer_1.UIStandardLayer, { "data-testid": `expression_edit_layer_${props.expression._id}`, open: props.open, title: "Edit Expression", maxWidth: false, actionText: "Done", onSet: () => props.onClose(props.expression), renderLayer: () => ((0, jsx_runtime_1.jsx)(material_1.Box, { minWidth: "800px", minHeight: "500px", children: (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: props.expression }) })), onClose: () => props.onClose(props.expression) }));
}
exports.ExpressionEditLayer = ExpressionEditLayer;
//# sourceMappingURL=ExpressionEditLayer.js.map