import { Flex } from 'antd'; import classNames from 'classnames'; import { Handle, NodeProps, Position } from 'reactflow'; import { NodeData } from '../../interface'; import { RightHandleStyle } from './handle-icon'; import NodePopover from './popover'; import { get } from 'lodash'; import styles from './index.less'; import NodeHeader from './node-header'; export function RelevantNode({ id, data, selected }: NodeProps) { const yes = get(data, 'form.yes'); const no = get(data, 'form.no'); return (
Yes
{yes}
No
{no}
); }