--- import BaseLayout from "./BaseLayout.astro"; const { title } = Astro.props; const user = Astro.locals.user; const navigation = [ { name: "Public profile", href: "/settings/profile" }, { name: "Account", href: "/settings/account" }, { name: "Password and authentication", href: "/settings/security" }, { name: "SSH and GPG keys", href: "/settings/ssh-keys" }, { name: "Personal access tokens", href: "/settings/tokens" }, { name: "OAuth apps", href: "/settings/oauth-apps" }, ]; const repoNavigation = [ { name: "Repositories", href: "/repositories" }, { name: "Organizations", href: "/orgs" }, { name: "Notifications", href: "/notifications" }, ]; const currentPath = Astro.url.pathname; ---
{user?.avatarUrl ? ( ) : (
{user?.username?.[0]?.toUpperCase()}
)}

{user?.username}