Dev Helpers
← Back

Account section shell

Place this file at app/studio/layout.tsx in an App Router project.

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>
  );
}