diff --git a/apps/web/src/modules/marketing/layout/header/header.tsx b/apps/web/src/modules/marketing/layout/header/header.tsx index c23a822..5a73a80 100644 --- a/apps/web/src/modules/marketing/layout/header/header.tsx +++ b/apps/web/src/modules/marketing/layout/header/header.tsx @@ -1,5 +1,7 @@ import Link from "next/link"; +import { getSession } from "~/lib/auth/server"; + const NAV = [ { label: "Docs", href: "https://github.com/alezmad/claudemesh-cli#readme" }, { label: "Blog", href: "/blog" }, @@ -9,7 +11,9 @@ const NAV = [ const OSS_REPO_URL = "https://github.com/alezmad/claudemesh-cli"; -export const Header = () => { +export const Header = async () => { + const { user } = await getSession(); + return (
{ - - Sign in - - - Start free - - + + {user ? ( + <> + + Dashboard + + + + {(user.name ?? user.email ?? "U").charAt(0).toUpperCase()} + + + {user.name ?? user.email} + + + + ) : ( + <> + + Sign in + + + Start free + + + + )}