import { jsx } from "react/jsx-runtime";
import "react";
import { ActionInitializer } from "../../../schema-initializer/items/ActionInitializer.mjs";
const DestroyActionInitializer = (props)=>{
    const schema = {
        title: '{{ t("Delete") }}',
        'x-action': 'destroy',
        'x-component': 'Action',
        'x-use-component-props': 'useDestroyActionProps',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:delete',
        'x-component-props': {
            icon: 'DeleteOutlined',
            confirm: {
                title: "{{t('Delete record')}}",
                content: "{{t('Are you sure you want to delete it?')}}"
            }
        },
        'x-action-settings': {
            triggerWorkflows: []
        }
    };
    return /*#__PURE__*/ jsx(ActionInitializer, {
        ...props,
        schema: schema
    });
};
export { DestroyActionInitializer };
