Open this example in the interactive library
Source code
// app/studio/layout.tsx
import type { ReactNode } from "react";
import Link from "next/link";
export default function AccountSectionShell({ children }: { children: ReactNode }) {
return (
<section>
<header>
<h1>Account</h1>
<nav>
<Link href="/studio/profile">Profile</Link> ·{" "}
<Link href="/studio/preferences">Preferences</Link>
</nav>
</header>
{children}
</section>
);
}
