|  | @@ -1,4 +1,5 @@
 | 
											
												
													
														|  |  import React from "react";
 |  |  import React from "react";
 | 
											
												
													
														|  | 
 |  | +import RenderIfVisible from "react-render-if-visible";
 | 
											
												
													
														|  |  import { Label, Node, NodeProps } from "reaflow";
 |  |  import { Label, Node, NodeProps } from "reaflow";
 | 
											
												
													
														|  |  import ObjectNode from "./ObjectNode";
 |  |  import ObjectNode from "./ObjectNode";
 | 
											
												
													
														|  |  import TextNode from "./TextNode";
 |  |  import TextNode from "./TextNode";
 | 
											
										
											
												
													
														|  | @@ -18,6 +19,12 @@ const baseLabelStyle = {
 | 
											
												
													
														|  |    strokeWidth: 0,
 |  |    strokeWidth: 0,
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +export const ConditionalWrapper: React.FC<{
 | 
											
												
													
														|  | 
 |  | +  condition?: boolean;
 | 
											
												
													
														|  | 
 |  | +  children: React.ReactNode;
 | 
											
												
													
														|  | 
 |  | +}> = ({ condition, children }) =>
 | 
											
												
													
														|  | 
 |  | +  condition ? <RenderIfVisible>{children}</RenderIfVisible> : <>{children}</>;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  export const CustomNode = (nodeProps: NodeProps) => {
 |  |  export const CustomNode = (nodeProps: NodeProps) => {
 | 
											
												
													
														|  |    const { properties } = nodeProps;
 |  |    const { properties } = nodeProps;
 | 
											
												
													
														|  |  
 |  |  
 |