import { jsx as _jsx } from "react/jsx-runtime";
import { memo, useMemo } from 'react';
import { VerbDescription } from '../verbForm/VerbDescription.js';
export const PivotDescription = /*#__PURE__*/ memo(function PivotDescription(props) {
    const rows = useMemo(()=>{
        const { step: { args  } ,  } = props;
        return [
            {
                before: 'column to use as key',
                value: args.key
            },
            {
                before: 'column to use as value',
                value: args.value,
                sub: [
                    {
                        before: 'with function',
                        value: args.operation
                    }, 
                ]
            }, 
        ];
    }, [
        props
    ]);
    return /*#__PURE__*/ _jsx(VerbDescription, {
        ...props,
        rows: rows
    });
});
