/*!
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project.
 */ import { jsx as _jsx } from "react/jsx-runtime";
import { memo } from 'react';
import { useStepDataTable, useTableColumnNames } from '../hooks/index.js';
import { UnfoldBase } from './Unfold.base.js';
/**
 * Just the group/column/op inputs for an aggregation.
 * Input table is expected to be edited elsewhere and configured as the step input.
 */ export const Unfold = /*#__PURE__*/ memo(function Unfold({ step , workflow , input , table , onChange  }) {
    const dataTable = useStepDataTable(step, workflow, input, table);
    const columns = useTableColumnNames(dataTable);
    return /*#__PURE__*/ _jsx(UnfoldBase, {
        step: step,
        onChange: onChange,
        columns: columns
    });
});
