/*!
 * 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 { createRowEntries } from '../verbForm/createRowEntries.js';
import { VerbDescription } from '../verbForm/VerbDescription.js';
export const UnhotDescription = /*#__PURE__*/ memo(function UnhotDescription(props) {
    const rows = useMemo(()=>{
        const { step: { args  } ,  } = props;
        const sub = createRowEntries(args.columns || [], (c)=>({
                value: c
            }), 1, props);
        return [
            {
                before: `column${args.columns?.length !== 1 ? 's' : ''}`,
                value: args.columns?.length === 0 ? undefined : '',
                sub
            },
            {
                before: 'with prefix',
                value: args.prefix
            },
            {
                before: 'keep source columns',
                value: args.preserveSource ? `yes` : 'no'
            }, 
        ];
    }, [
        props
    ]);
    return /*#__PURE__*/ _jsx(VerbDescription, {
        ...props,
        rows: rows
    });
});
