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