mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-14 23:21:20 +00:00
19 lines
456 B
TypeScript
19 lines
456 B
TypeScript
import { lazy, memo } from "react";
|
|
|
|
import { OpenAIProvider } from "~/components/editor/use-chat";
|
|
|
|
const PlateEditorImport = lazy(() =>
|
|
import("~/components/editor/plate-editor").then((mod) => ({ default: mod.PlateEditor })),
|
|
);
|
|
|
|
const PlateEditor = memo(PlateEditorImport);
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div className="h-screen w-full" data-registry="plate">
|
|
<OpenAIProvider>
|
|
<PlateEditor />
|
|
</OpenAIProvider>
|
|
</div>
|
|
);
|
|
}
|