layout.tsx 622 B

123456789101112131415161718
  1. import Link from "next/link";
  2. import { SignOutButton } from "@/components/auth/sign-out-button";
  3. export default function AppLayout({ children }: { children: React.ReactNode }) {
  4. return (
  5. <div className="flex min-h-screen flex-col">
  6. <header className="border-b border-foreground/10">
  7. <nav className="mx-auto flex max-w-3xl items-center justify-between px-4 py-3">
  8. <Link href="/" className="text-lg font-bold text-foreground">
  9. MovieDice
  10. </Link>
  11. <SignOutButton />
  12. </nav>
  13. </header>
  14. <main className="flex-1">{children}</main>
  15. </div>
  16. );
  17. }