Portal/rsconcept/frontend/src/components/ui/GraphUI.tsx
IRBorisov 2759f10d09
Some checks failed
Backend CI / build (3.12) (push) Has been cancelled
Frontend CI / build (18.x) (push) Has been cancelled
Initial commit
2024-06-07 20:17:03 +03:00

22 lines
504 B
TypeScript

// 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;