Define passport href in layout

cgen-0ca4f2dfebff49d6b3292cef4d65b7fb
This commit is contained in:
Builder.io 2025-10-04 23:50:53 +00:00
parent 70255a61f1
commit 1c0421bae4

View file

@ -58,6 +58,10 @@ export default function CodeLayout({ children }: LayoutProps) {
{ name: "Contact", href: "/contact" },
];
const passportHref = profile?.username
? `/passport/${profile.username}`
: "/passport/me";
const navItems = user ? userNavigation : navigation;
const scrollToTop = () => {