Initial react editor Next.js template

This commit is contained in:
Rami Bitar
2026-08-29 15:45:18 -04:00
commit 6e5783e644
32 changed files with 4192 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
'use client';
import { Render } from '@reacteditor/core/render';
import { appConfig } from '@/editor.config';
import globals from '@/app.globals.json';
export type PageData = { root?: unknown; content?: unknown; globals?: unknown };
export default function PageRender({ page }: { page: PageData }) {
return <Render config={appConfig as never} data={{ root: page.root, content: page.content, globals } as never} />;
}