File size: 385 Bytes
f909d7c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from "react";
import dynamic from "next/dynamic";
import { EdgeProps } from "reaflow/dist/symbols/Edge";

const Edge = dynamic(() => import("reaflow").then(r => r.Edge), {
  ssr: false,
});

const CustomEdgeWrapper = (props: EdgeProps) => {
  return <Edge containerClassName={`edge-${props.id}`} {...props} />;
};

export const CustomEdge = React.memo(CustomEdgeWrapper);