import { jsx as _jsx } from "react/jsx-runtime";
import { memo, useMemo } from 'react';
import { createRowEntries } from '../verbForm/createRowEntries.js';
import { VerbDescription } from '../verbForm/VerbDescription.js';
export const RenameDescription = /*#__PURE__*/ memo(function RenameDescription(props) {
    const rows = useMemo(()=>{
        const { step: { args  } ,  } = props;
        const entries = Object.entries(args.columns || {});
        const sub = createRowEntries(entries, (c)=>({
                value: `${c[0]} -> ${c[1]}`
            }), 1, props);
        return [
            {
                before: 'columns',
                value: entries.length === 0 ? undefined : '',
                sub
            }, 
        ];
    }, [
        props
    ]);
    return /*#__PURE__*/ _jsx(VerbDescription, {
        ...props,
        rows: rows
    });
});
