import type { Metadata } from "next";
import ArticleComponent from "@/components/page/Article";

type Props = {
  params: { lang: string }
}

export async function generateMetadata({ params }: Props): Promise<Metadata> {
  return {
    title: params.lang === 'id' ? 'Lingkaran Dua | Artikel' : '双环 | 文章',
    description: params.lang === 'id' ? 'Temukan artikel inspiratif tentang tips memasak, perawatan alat masak, dan panduan memilih cookware berkualitas di Lingkaran Dua untuk dapur yang lebih efisien.' : '在 Lingkaran Dua 阅读厨房生活与烹饪技巧文章，包括厨具保养、烹饪省气方法和优质炊具选购指南，提升厨房效率。',
    keywords: params.lang === 'id' ? 'Lingkaran Dua, Artikel' : '双环, 文章',
    robots: {
      index: true,
      follow: true,
      nocache: true,
      googleBot: {
        index: true,
        follow: false,
      },
    },
  };
}

export default async function Product() {
  return (
    <ArticleComponent />
  );
}
