import { AuthView } from "@neondatabase/auth/react";

export function generateStaticParams() {
  return [{ path: "sign-in" }, { path: "sign-up" }, { path: "sign-out" }];
}

export default async function AuthPage({
  params,
}: {
  params: Promise<{ path: string }>;
}) {
  const { path } = await params;

  return (
    <main className="container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6">
      <AuthView path={path} />
    </main>
  );
}
