import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__ from "../../../collection-manager/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__schema_initializer_items_ActionInitializer_mjs__ from "../../../schema-initializer/items/ActionInitializer.mjs";
const BulkDestroyActionInitializer = (props)=>{
    const collection = (0, __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
    const schema = {
        title: '{{ t("Delete") }}',
        'x-action': 'destroy',
        'x-component': 'Action',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:bulkDelete',
        'x-decorator': 'ACLActionProvider',
        'x-acl-action-props': {
            skipScopeCheck: true
        },
        'x-use-component-props': 'useBulkDestroyActionProps',
        'x-component-props': {
            icon: 'DeleteOutlined',
            confirm: {
                title: "{{t('Delete record')}}",
                content: "{{t('Are you sure you want to delete it?')}}"
            }
        },
        'x-action-settings': {
            triggerWorkflows: []
        }
    };
    if (collection) schema['x-acl-action'] = "".concat(collection.name, ":destroy");
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_initializer_items_ActionInitializer_mjs__.ActionInitializer, {
        ...props,
        schema: schema
    });
};
export { BulkDestroyActionInitializer };
