import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../../schema-component/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__context_index_mjs__ from "../context/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__SchemaInitializerChildren_mjs__ from "./SchemaInitializerChildren.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__SchemaInitializerDivider_mjs__ from "./SchemaInitializerDivider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__style_mjs__ from "./style.mjs";
const SchemaInitializerItemGroup = (param)=>{
    let { children, title, divider } = param;
    const compile = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useCompile)();
    const { componentCls } = (0, __WEBPACK_EXTERNAL_MODULE__style_mjs__.useSchemaInitializerStyles)();
    const { token } = __WEBPACK_EXTERNAL_MODULE_antd__.theme.useToken();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
        style: {
            marginInline: token.marginXXS
        },
        children: [
            divider && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__SchemaInitializerDivider_mjs__.SchemaInitializerDivider, {}),
            /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
                className: "".concat(componentCls, "-group-title"),
                children: compile(title)
            }),
            /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__SchemaInitializerChildren_mjs__.SchemaInitializerChildren, {
                children: children
            })
        ]
    });
};
const SchemaInitializerItemGroupInternal = ()=>{
    const itemConfig = (0, __WEBPACK_EXTERNAL_MODULE__context_index_mjs__.useSchemaInitializerItem)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaInitializerItemGroup, {
        ...itemConfig
    });
};
export { SchemaInitializerItemGroup, SchemaInitializerItemGroupInternal };
