import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../../application/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__schema_initializer_items_index_mjs__ from "../../../schema-initializer/items/index.mjs";
const UpdateRecordActionInitializer = (props)=>{
    const schema = {
        title: '{{ t("Update record") }}',
        'x-component': (null == props ? void 0 : props['x-component']) || 'Action.Link',
        'x-use-component-props': 'useCustomizeUpdateActionProps',
        'x-action': 'customize:update',
        'x-decorator': 'ACLActionProvider',
        'x-acl-action': 'update',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:updateRecord',
        'x-action-settings': {
            assignedValues: {},
            onSuccess: {
                manualClose: true,
                redirecting: false,
                successMessage: '{{t("Updated successfully")}}'
            },
            triggerWorkflows: []
        }
    };
    const itemConfig = (0, __WEBPACK_EXTERNAL_MODULE__application_index_mjs__.useSchemaInitializerItem)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_initializer_items_index_mjs__.BlockInitializer, {
        ...itemConfig,
        schema: schema,
        item: itemConfig
    });
};
export { UpdateRecordActionInitializer };
