diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx index 902099c5..e65c8aaa 100644 --- a/app/(marketing)/layout.tsx +++ b/app/(marketing)/layout.tsx @@ -1,10 +1,11 @@ import Link from "next/link" - +import { UserAccountNav } from "@/components/user-account-nav" import { marketingConfig } from "@/config/marketing" import { cn } from "@/lib/utils" import { buttonVariants } from "@/components/ui/button" import { MainNav } from "@/components/main-nav" import { SiteFooter } from "@/components/site-footer" +import { getCurrentUser } from "@/lib/session" interface MarketingLayoutProps { children: React.ReactNode @@ -13,21 +14,44 @@ interface MarketingLayoutProps { export default async function MarketingLayout({ children, }: MarketingLayoutProps) { + + + let user: any; + getCurrentUser().then(currentUser => { + user = currentUser; + }); + + return (