import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import FormGenerator from "../../../form-generator-v2/FormGenerator.js";
import { useMainEditorStore } from "../../hooks/useMainEditorStore.js";
import { editorCn } from "../../utils/cn.js";
import './GlobalConfig.css';
const b = editorCn('global-config');
const GlobalConfig = ({ className }) => {
    const { global, content, updateField } = useMainEditorStore();
    const onUpdate = (key, value) => {
        updateField(key, value);
    };
    return (_jsxs("div", { className: b(null, className), children: [_jsx("div", { className: b('title'), children: "Global Config" }), _jsx(FormGenerator, { contentConfig: content, blockConfig: global, onUpdateByKey: onUpdate })] }));
};
export default GlobalConfig;
//# sourceMappingURL=GlobalConfig.js.map
