import { jsx as _jsx } from "react/jsx-runtime";
import { FilterCompareType } from '@data-wrangling-components/core';
import { memo, useMemo } from 'react';
import { VerbDescription } from '../verbForm/VerbDescription.js';
export const BinarizeDescription = /*#__PURE__*/ memo(function BinarizeDescription(props) {
    const rows = useMemo(()=>{
        const { step: { args  } ,  } = props;
        return [
            {
                before: 'where',
                value: args?.column,
                after: 'row value',
                sub: (args.criteria || []).map((criterion)=>({
                        value: `${criterion.operator || ''} ${criterion.value || ''}`,
                        after: criterion.type === FilterCompareType.Column ? 'row value' : ''
                    }))
            }, 
        ];
    }, [
        props
    ]);
    return /*#__PURE__*/ _jsx(VerbDescription, {
        ...props,
        rows: rows
    });
});
