import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import { Header } from "@/components/header"; import { NarrowCard } from "@/components/narrow-card"; import { StagingBanner } from "@/components/staging-banner"; import { getMe } from "@/lib/api"; import { cn } from "@/lib/utils"; import "./globals.css"; const sans = Geist({ subsets: ["latin"], variable: "--font-sans" }); const mono = Geist_Mono({ subsets: ["latin"], variable: "--font-mono" }); export const metadata: Metadata = { title: { template: "%s ยท T5DE Hub", default: "T5DE Hub" }, description: "One account for all your IMVU avatars.", }; export default async function RootLayout({ children }: { children: React.ReactNode }) { const me = await getMe(); return (
{me && !me.approved ? ( ) : ( children )}
); }