import { jsx } from "react/jsx-runtime";
import "react";
import { useSchemaInitializerItem } from "../../../application/index.mjs";
import { BlockInitializer } 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 = useSchemaInitializerItem();
    return /*#__PURE__*/ jsx(BlockInitializer, {
        ...itemConfig,
        schema: schema,
        item: itemConfig
    });
};
export { UpdateRecordActionInitializer };
