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__SchemaInitializerItem_mjs__ from "./SchemaInitializerItem.mjs";
const SchemaInitializerSwitch = (props)=>{
    const { title, checked, ...resets } = props;
    const compile = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useCompile)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__SchemaInitializerItem_mjs__.SchemaInitializerItem, {
        ...resets,
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
            style: {
                display: 'flex',
                alignItems: 'center',
                justifyContent: 'space-between'
            },
            children: [
                compile(title),
                " ",
                /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Switch, {
                    style: {
                        marginLeft: 20
                    },
                    size: 'small',
                    checked: checked
                })
            ]
        })
    });
};
const SchemaInitializerSwitchInternal = ()=>{
    const itemConfig = (0, __WEBPACK_EXTERNAL_MODULE__context_index_mjs__.useSchemaInitializerItem)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SchemaInitializerSwitch, {
        ...itemConfig
    });
};
export { SchemaInitializerSwitch, SchemaInitializerSwitchInternal };
