import { useSchemaToolbar } from "../../../application/index.mjs";
import { SchemaSettings } from "../../../application/schema-settings/SchemaSettings.mjs";
import { useCollection_deprecated } from "../../../collection-manager/index.mjs";
import { ButtonEditor, SecondConFirm } from "../../../schema-component/antd/action/Action.Designer.mjs";
import { SchemaSettingsLinkageRules } from "../../../schema-settings/index.mjs";
const disassociateActionSettings = new SchemaSettings({
    name: 'actionSettings:disassociate',
    items: [
        {
            name: 'editButton',
            Component: ButtonEditor,
            useComponentProps () {
                const { buttonEditorProps } = useSchemaToolbar();
                return buttonEditorProps;
            }
        },
        {
            name: 'linkageRules',
            Component: SchemaSettingsLinkageRules,
            useComponentProps () {
                const { name } = useCollection_deprecated();
                const { linkageRulesProps } = useSchemaToolbar();
                return {
                    ...linkageRulesProps,
                    collectionName: name
                };
            }
        },
        {
            name: 'secondConFirm',
            Component: SecondConFirm
        },
        {
            name: 'delete',
            type: 'remove'
        }
    ]
});
export { disassociateActionSettings };
