import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_client__ from "@tachybase/client";
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
const Test = ()=>{
    const { designable, setDesignable } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_client__.useSchemaComponentContext)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
        style: {
            marginBottom: 24
        },
        onClick: ()=>{
            setDesignable(!designable);
        },
        children: [
            "designable: ",
            designable ? 'true' : 'false'
        ]
    });
};
const demo3_rslib_entry_ = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponentProvider, {
        designable: true,
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Test, {})
    });
export { demo3_rslib_entry_ as default };
