import type { Metadata } from "next";
import type { Lang } from "@/lib/config";
import { buildPageMetadata } from "@/lib/seo";

export function generateMetadata({
  params,
}: {
  params: { lang: Lang };
}): Metadata {
  const isAr = params.lang === "ar";
  return buildPageMetadata({
    lang: params.lang,
    title: isAr ? "تسجيل الدخول | موعدي" : "Login | Mawidi",
    description: isAr
      ? "سجل الدخول إلى حسابك في موعدي."
      : "Log in to your Mawidi account.",
    path: "/clerk-login",
    noindex: true,
  });
}

export default function ClerkLoginLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return children;
}
