diff --git a/src/nodes/custom/CustomNode.tsx b/src/nodes/custom/CustomNode.tsx new file mode 100644 index 0000000..1dca10d --- /dev/null +++ b/src/nodes/custom/CustomNode.tsx @@ -0,0 +1,83 @@ +// CustomNode.tsx +import React, { memo } from 'react'; +import { Handle, Position } from '@xyflow/react'; + +interface NodeProps { + data: { + label: string; + }; + isConnectable: boolean; +} + +const CustomNode: React.FC = ({ data, isConnectable }) => { + return ( + <> + console.log('handle onConnect', params)} + isConnectable={isConnectable} + /> +
+ {data.label} +
+ +
+ Yes +
+ +
+ No +
+ + ); +}; + +export default memo(CustomNode);