import Link from "next/link";
import { SignOutButton } from "@/components/auth/sign-out-button";

export default function AppLayout({ children }: { children: React.ReactNode }) {
  return (
    <div className="flex min-h-screen flex-col">
      <header className="border-b border-foreground/10">
        <nav className="mx-auto flex max-w-3xl items-center justify-between px-4 py-3">
          <Link href="/" className="text-lg font-bold text-foreground">
            MovieDice
          </Link>
          <SignOutButton />
        </nav>
      </header>
      <main className="flex-1">{children}</main>
    </div>
  );
}
