Replace reverse-proxy/iframe approach with @ebook/@community/@navmini imports under /nav /book /community so localhost:3000 serves all three products directly. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
610 B
TypeScript
25 lines
610 B
TypeScript
import { AuthProvider } from "@community/lib/auth";
|
|
import { ToastProvider } from "@community/lib/toast";
|
|
import { I18nProvider } from "@community/lib/i18n";
|
|
import PwaRegister from "@community/components/PwaRegister";
|
|
import "@community/app/globals.css";
|
|
|
|
export default function CommunityLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="community-root">
|
|
<I18nProvider>
|
|
<AuthProvider>
|
|
<ToastProvider>
|
|
{children}
|
|
<PwaRegister />
|
|
</ToastProvider>
|
|
</AuthProvider>
|
|
</I18nProvider>
|
|
</div>
|
|
);
|
|
}
|