/*!
 * 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, useMemo } from 'react';
import { FormInputType, VerbForm } from '../verbForm/VerbForm.js';
/**
 * Just the to/value inputs for an impute.
 * Input table is expected to be edited elsewhere and configured as the step input.
 */ export const UnhotBase = /*#__PURE__*/ memo(function UnhotBase({ step , onChange  }) {
    const inputs = useMemo(()=>[
            {
                label: 'Keep source columns',
                type: FormInputType.Checkbox,
                current: step.args.preserveSource,
                onChange: (s, val)=>s.args.preserveSource = val,
                advanced: true
            },
            {
                label: 'Prefix',
                type: FormInputType.Text,
                current: step.args.prefix,
                onChange: (s, val)=>s.args.prefix = val,
                advanced: true
            }, 
        ], [
        step
    ]);
    return /*#__PURE__*/ _jsx(VerbForm, {
        inputs: inputs,
        step: step,
        onChange: onChange
    });
});
