import { useSchemaToolbar } from "../../../application/index.mjs";
import { SchemaSettings } from "../../../application/schema-settings/SchemaSettings.mjs";
import { ButtonEditor, RemoveButton } from "../../../schema-component/antd/action/Action.Designer.mjs";
import { SchemaSettingOpenModeSchemaItems } from "../../../schema-items/index.mjs";
const customizeAddRecordActionSettings = new SchemaSettings({
    name: 'actionSettings:addRecord',
    items: [
        {
            name: 'editButton',
            Component: ButtonEditor,
            useComponentProps () {
                const { buttonEditorProps } = useSchemaToolbar();
                return buttonEditorProps;
            }
        },
        {
            name: 'openMode',
            Component: SchemaSettingOpenModeSchemaItems,
            componentProps: {
                openMode: true,
                openSize: true
            }
        },
        {
            name: 'delete',
            sort: 100,
            Component: RemoveButton,
            useComponentProps () {
                const { removeButtonProps } = useSchemaToolbar();
                return removeButtonProps;
            }
        }
    ]
});
export { customizeAddRecordActionSettings };
