nomadro/apps/nomadvip/app/vip/components/VipLayout.tsx
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

40 lines
825 B
TypeScript

"use client";
import { type ReactNode } from "react";
import { VipHeader } from "./VipHeader";
import styles from "./vip.module.css";
type VipLayoutProps = {
children: ReactNode;
isLoggedIn: boolean;
userName?: string | null;
userEmail?: string | null;
wechatNick?: string | null;
wechatAvatar?: string | null;
onLogout?: () => void;
};
export function VipLayout({
children,
isLoggedIn,
userName,
userEmail,
wechatNick,
wechatAvatar,
onLogout,
}: VipLayoutProps) {
return (
<div className={styles.root}>
<VipHeader
isLoggedIn={isLoggedIn}
userName={userName}
userEmail={userEmail}
wechatNick={wechatNick}
wechatAvatar={wechatAvatar}
onLogout={onLogout}
/>
<main className={styles.main}>{children}</main>
</div>
);
}