import { jsx as _jsx } from "react/jsx-runtime";
import { memo } from 'react';
import { useStepDataTable, useTableColumnNames } from '../hooks/index.js';
import { FoldBase } from './Fold.base.js';
/**
 * Provides inputs for a step that needs lists of columns.
 */ export const Fold = /*#__PURE__*/ memo(function Fold({ step , graph , input , table , onChange ,  }) {
    const dataTable = useStepDataTable(step, graph, input, table);
    const columns = useTableColumnNames(dataTable);
    return /*#__PURE__*/ _jsx(FoldBase, {
        step: step,
        onChange: onChange,
        columns: columns
    });
});
