/*!
 * 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 { useColumnsMetadata, useStepDataTable } from '../hooks/index.js';
import { ConvertBase } from './Convert.base.js';
/**
 * Provides inputs for a Convert step.
 */ export const Convert = /*#__PURE__*/ memo(function Convert({ step , workflow , input , table , onChange  }) {
    const dataTable = useStepDataTable(step, workflow, input, table);
    // TODO: replace this with introspect
    const fields = useColumnsMetadata(dataTable);
    return /*#__PURE__*/ _jsx(ConvertBase, {
        step: step,
        onChange: onChange,
        fields: fields
    });
});
