nomadro/app/vip/layout.tsx
eric 626f6b19e8 Ship unified miniprogram H5/weapp parity and XHS offline portal.
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>
2026-09-30 09:37:03 +08:00

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>
);
}