's'
This commit is contained in:
20
app/vip/components/VipLayout.tsx
Normal file
20
app/vip/components/VipLayout.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"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;
|
||||
};
|
||||
|
||||
export function VipLayout({ children, isLoggedIn, userName }: VipLayoutProps) {
|
||||
return (
|
||||
<div className={styles.root}>
|
||||
<VipHeader isLoggedIn={isLoggedIn} userName={userName} />
|
||||
<main className={styles.main}>{children}</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user