Portal/rsconcept/frontend/src/components/ui/GraphUI.tsx

22 lines
504 B
TypeScript
Raw Normal View History

2024-06-07 20:17:03 +03:00
// Reexporting reagraph types to wrap in 'use client'.
'use client';
import { GraphCanvas as GraphUI } from 'reagraph';
export {
type GraphEdge,
type GraphNode,
type GraphCanvasRef,
Sphere,
useSelection,
type CollapseProps
} from 'reagraph';
export { type LayoutTypes as GraphLayout } from 'reagraph';
import { ThreeEvent } from '@react-three/fiber';
export type GraphMouseEvent = ThreeEvent<MouseEvent>;
export type GraphPointerEvent = ThreeEvent<PointerEvent>;
export default GraphUI;