"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const FormGenerator_1 = tslib_1.__importDefault(require("../../../form-generator-v2/FormGenerator.js"));
const useMainEditorStore_1 = require("../../hooks/useMainEditorStore.js");
const cn_1 = require("../../utils/cn.js");
const b = (0, cn_1.editorCn)('global-config');
const GlobalConfig = ({ className }) => {
    const { global, content, updateField } = (0, useMainEditorStore_1.useMainEditorStore)();
    const onUpdate = (key, value) => {
        updateField(key, value);
    };
    return ((0, jsx_runtime_1.jsxs)("div", { className: b(null, className), children: [(0, jsx_runtime_1.jsx)("div", { className: b('title'), children: "Global Config" }), (0, jsx_runtime_1.jsx)(FormGenerator_1.default, { contentConfig: content, blockConfig: global, onUpdateByKey: onUpdate })] }));
};
exports.default = GlobalConfig;
//# sourceMappingURL=GlobalConfig.js.map
