import * as React from "react";
import ForgotPasswordPageClient from "./ForgotPasswordPageClient";

export default async function ForgotPasswordPage({
  searchParams,
}: {
  searchParams: Promise<Record<string, string | string[] | undefined>>;
}) {
  const params = await searchParams;
  const embedded = params.embedded === "1";

  return <ForgotPasswordPageClient embedded={embedded} />;
}
