core/apps/webapp/app/components/graph/graph-client.tsx
Harshith Mullapudi 1fa7fd93d5
Feat: spaces (#51)
* feat: Episode ingestion update
Benchmarking CORE

* Feat: Spaces in knowledge graph

* fix: remove daily assignment

* Feat: add spaces

* Feat: spaces

---------

Co-authored-by: Manoj K <saimanoj58@gmail.com>
2025-08-21 11:53:45 +05:30

25 lines
615 B
TypeScript

import { type GraphClusteringVisualizationProps } from "./graph-clustering-visualization";
import { useState, useEffect } from "react";
export function GraphVisualizationClient(
props: GraphClusteringVisualizationProps,
) {
const [Component, setComponent] = useState<any>(undefined);
useEffect(() => {
if (typeof window === "undefined") return;
import("./graph-clustering-visualization").then(
({ GraphClusteringVisualization }) => {
setComponent(GraphClusteringVisualization);
},
);
}, []);
if (!Component) {
return null;
}
return <Component {...props} />;
}