Repository Public
1import { notFound } from "next/navigation";2import { ThemeToggle } from "@/components/layout/ThemeToggle";3import { Wordmark } from "@/components/ui/Logo";4import { studioEnabled } from "@/lib/studio/guard";56export default function AuthLayout({ children }: { children: React.ReactNode }) {7 if (!studioEnabled()) notFound();8 return (9 <div className="grid-paper grid min-h-dvh place-items-center px-4 py-10">10 <main className="card w-full max-w-md p-6 shadow-card md:p-8">11 <div className="flex items-center justify-between gap-3"><Wordmark /><ThemeToggle /></div>12 <p className="eyebrow mt-6">Studio de l’enseignant</p>13 {children}14 </main>15 </div>16 );17}18