import type { Metadata } from "next";
import ProductComponent from "@/components/page/Product";

type Props = {
  params: { lang: string }
}

export async function generateMetadata({ params }: Props): Promise<Metadata> {
  return {
    title: params.lang === 'id' ? 'Lingkaran Dua | Produk' : '双环 | 关于我们',
    description: params.lang === 'id' ? 'Temukan beragam alat masak berkualitas dari Lingkaran Dua — panci presto, panci kukus, panci sup, foodtray stainless, saringan rice cooker, aluminium coin & rak susun lipat untuk dapur efisien.' : '双环，提供高品质厨房炊具，专为印尼家庭设计——耐用、安全、高效的锅具、压力锅与蒸锅。',
    keywords: params.lang === 'id' ? 'Lingkaran Dua, Produk' : '双环, 关于我们',
    robots: {
      index: true,
      follow: true,
      nocache: true,
      googleBot: {
        index: true,
        follow: false,
      },
    },
  };
}

export default async function Product() {
  return (
    <ProductComponent />
  );
}
