import type { Metadata } from "next";
import { getPageKeywords } from "@/lib/seo/keywords";
import { isValidLocale, DEFAULT_LOCALE } from "@/lib/i18n/locales";

export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
  const { locale } = await params;
  const validLocale = isValidLocale(locale) ? locale : DEFAULT_LOCALE;
  const keywords = getPageKeywords(validLocale, 'checkout');
  
  return {
    title: keywords.metaTitle,
    description: keywords.metaDescription,
    robots: {
      index: false,
      follow: false,
    },
  };
}

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