import { jsx } from "react/jsx-runtime";
import "react";
import { FormOutlined } from "@ant-design/icons";
import { SchemaInitializerItem, useSchemaInitializer, useSchemaInitializerItem } from "../../../../application/index.mjs";
const MarkdownFormItemInitializer = ()=>{
    const { insert } = useSchemaInitializer();
    const itemConfig = useSchemaInitializerItem();
    return /*#__PURE__*/ jsx(SchemaInitializerItem, {
        ...itemConfig,
        icon: /*#__PURE__*/ jsx(FormOutlined, {}),
        onClick: ()=>{
            insert({
                type: 'void',
                'x-editable': false,
                'x-decorator': 'FormItem',
                'x-toolbar': 'BlockSchemaToolbar',
                'x-settings': 'blockSettings:markdown',
                'x-component': 'Markdown.Void',
                'x-component-props': {
                    content: '{{t("This is a demo text, **supports Markdown syntax**.")}}'
                }
            });
        }
    });
};
export { MarkdownFormItemInitializer };
