import React, { memo } from 'react'; import { Position } from '@xyflow/react'; import './CustomNode.css'; import OnlyOneHandle from './OnlyOneHandle'; const CustomNode = memo(({ data: { style, position, ...data}, isConnectable }) => { return (