import { jsx } from "react/jsx-runtime";
import "react";
import { uid } from "@tachybase/schema";
import { useSchemaInitializerItem } from "../../application/index.mjs";
import { InitializerWithSwitch } from "./InitializerWithSwitch.mjs";
const TableActionColumnInitializer = ()=>{
    const schema = {
        type: 'void',
        title: '{{ t("Actions") }}',
        'x-decorator': 'TableV2.Column.ActionBar',
        'x-component': 'TableV2.Column',
        'x-component-props': {
            width: 150,
            fixed: 'right'
        },
        'x-designer': 'TableV2.ActionColumnDesigner',
        'x-initializer': 'table:configureItemActions',
        'x-action-column': 'actions',
        properties: {
            [uid()]: {
                type: 'void',
                'x-decorator': 'DndContext',
                'x-component': 'Space',
                'x-component-props': {
                    split: '|'
                },
                properties: {}
            }
        }
    };
    const itemConfig = useSchemaInitializerItem();
    return /*#__PURE__*/ jsx(InitializerWithSwitch, {
        ...itemConfig,
        schema: schema,
        item: itemConfig,
        type: 'x-action-column'
    });
};
export { TableActionColumnInitializer };
