import type { Metadata } from "next";

export const metadata: Metadata = {
  title: "RSVP Admin",
  // Every screen under here holds guest names, phone numbers and email addresses.
  robots: { index: false, follow: false },
};

/**
 * Metadata only, deliberately.
 *
 * The session guard lives one level down in `(protected)/layout.tsx` so that
 * `/admin/signin` — which must be reachable *without* a session — is not wrapped by it.
 * Putting the redirect here would send an unauthenticated visitor to a page that redirects
 * them straight back, forever.
 */
export default function AdminRootLayout({ children }: { children: React.ReactNode }) {
  return children;
}
