mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 00:08:27 +00:00
* Feat: clustering fact statements * Feat: cluster drift * Feat: add recall count and model to search * Feat: Github integration * Fix: clustering UI * Improve graph * Bump: new version --------- Co-authored-by: Manoj K <saimanoj58@gmail.com>
27 lines
744 B
TypeScript
27 lines
744 B
TypeScript
import { GraphClusteringProps } from "./graph-clustering";
|
|
import { type GraphClusteringVisualizationProps } from "./graph-clustering-visualization";
|
|
import { type GraphVisualizationProps } from "./graph-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} />;
|
|
}
|