import { useCallback } from 'react';
export function useColumnRecordDelete(step, onChange) {
    return useCallback((column)=>{
        const args = {
            ...step.args
        };
        delete args.columns[column];
        onChange?.({
            ...step,
            args: {
                ...step.args,
                ...args
            }
        });
    }, [
        step,
        onChange
    ]);
}
