/*!
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project.
 */ 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
    ]);
}
