import { jsx as _jsx } from "react/jsx-runtime";
import { NodeInput } from '@essex/dataflow';
import { memo, useMemo } from 'react';
import { VerbDescription } from '../verbForm/VerbDescription.js';
export const JoinDescription = /*#__PURE__*/ memo(function JoinDescription(props) {
    const rows = useMemo(()=>{
        const { step: { args  } ,  } = props;
        return [
            {
                before: 'with',
                value: props.step.input[NodeInput.Other]?.node
            },
            {
                before: 'on',
                value: args.on?.join(' | ')
            }, 
        ];
    }, [
        props
    ]);
    return /*#__PURE__*/ _jsx(VerbDescription, {
        ...props,
        rows: rows
    });
});
