import { jsx, jsxs } from "react/jsx-runtime";
import "react";
import { useField } from "@tachybase/schema";
import { useTranslation } from "react-i18next";
import { GeneralSchemaDesigner, SchemaSettingsDivider, SchemaSettingsItem, SchemaSettingsRemove } from "../../../schema-settings/index.mjs";
const MarkdownVoidDesigner = ()=>{
    const field = useField();
    const { t } = useTranslation();
    return /*#__PURE__*/ jsxs(GeneralSchemaDesigner, {
        children: [
            /*#__PURE__*/ jsx(SchemaSettingsItem, {
                title: t('Edit markdown'),
                onClick: ()=>{
                    field.editable = true;
                }
            }),
            /*#__PURE__*/ jsx(SchemaSettingsDivider, {}),
            /*#__PURE__*/ jsx(SchemaSettingsRemove, {
                removeParentsIfNoChildren: true,
                breakRemoveOn: {
                    'x-component': 'Grid'
                }
            })
        ]
    });
};
export { MarkdownVoidDesigner };
