mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-10 08:58:31 +00:00
* Feat: v2 * feat: add chat functionality * First cut: integrations * Feat: add conversation API * Enhance conversation handling and memory management * Feat: added conversation --------- Co-authored-by: Manoj K <saimanoj58@gmail.com>
21 lines
531 B
TypeScript
21 lines
531 B
TypeScript
import { type GraphVisualizationProps } from "./graph-visualization";
|
|
import { useState, useEffect } from "react";
|
|
|
|
export function GraphVisualizationClient(props: GraphVisualizationProps) {
|
|
const [Component, setComponent] = useState<any>(undefined);
|
|
|
|
useEffect(() => {
|
|
if (typeof window === "undefined") return;
|
|
|
|
import("./graph-visualization").then(({ GraphVisualization }) => {
|
|
setComponent(GraphVisualization);
|
|
});
|
|
}, []);
|
|
|
|
if (!Component) {
|
|
return null;
|
|
}
|
|
|
|
return <Component {...props} />;
|
|
}
|