Align Taro pages with Next hub/nav/book/community/VIP, pack the single-index Xiaohongshu portal with host-chrome safe areas, and refresh shared book content plus portal README constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
741 B
TypeScript
18 lines
741 B
TypeScript
import "@vip/app/globals.css";
|
|
import { ThemeProvider } from "@vip/app/providers/ThemeProvider";
|
|
import { httpsUpgradeScript } from "@vip/app/https-upgrade";
|
|
import { themeInitScript } from "@vip/app/theme-init";
|
|
import { ModuleBoundary } from "~/components/module-boundary";
|
|
|
|
export default function VipLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<ModuleBoundary moduleKey="vip">
|
|
<div className="vip-root min-h-screen bg-[var(--background)] text-[var(--foreground)]">
|
|
<script dangerouslySetInnerHTML={{ __html: httpsUpgradeScript }} />
|
|
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
|
|
<ThemeProvider>{children}</ThemeProvider>
|
|
</div>
|
|
</ModuleBoundary>
|
|
);
|
|
}
|