import { jsx as _jsx } from "react/jsx-runtime";
import { memo, useMemo } from 'react';
import { FormInputType, VerbForm } from '../verbForm/VerbForm.js';
import { inputColumnList } from '../verbForm/VerbFormFactories.js';
/**
 * Just the to/value inputs for an erase.
 * Input table is expected to be edited elsewhere and configured as the step input.
 */ export const EraseBase = /*#__PURE__*/ memo(function EraseBase({ step , onChange , columns  }) {
    const inputs = useMemo(()=>[
            inputColumnList(step, columns, 'Columns to erase'),
            {
                label: 'Value to be erased',
                type: FormInputType.Text,
                current: step.args.value,
                placeholder: 'text, number, or boolean',
                onChange: (s, val)=>s.args.value = val
            }, 
        ], [
        step,
        columns
    ]);
    return /*#__PURE__*/ _jsx(VerbForm, {
        inputs: inputs,
        step: step,
        onChange: onChange
    });
});
