import type { Metadata } from "next"
import { getTranslations } from "next-intl/server"

type Props = {
  params: Promise<{ locale: string }>
}

export async function generateMetadata({ params }: Props): Promise<Metadata> {
  const { locale } = await params
  const t = await getTranslations({ locale, namespace: "auth" })

  return {
    title: t("pageTitle"),
    description: t("pageDescription"),
  }
}

/**
 * Login page layout
 * Does not include sidebar and header
 */
export default function LoginLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return children
}
