import { getTranslations } from "next-intl/server";
import { Metadata } from "next";
import ValueBoardContent from "@/components/value-board/value-board-content";

export async function generateMetadata(props: {
  params: Promise<{ locale: string }>;
}): Promise<Metadata> {
  const { locale } = await props.params;
  const t = await getTranslations({ locale, namespace: "seo" });
  const siteUrl = process.env.NEXT_PUBLIC_APP_URL || "https://iddaai.com";

  return {
    title: t("value-board.title"),
    description: t("value-board.description"),
    alternates: {
      canonical: `${siteUrl}/${locale}/value-board`,
      languages: {
        en: `${siteUrl}/en/value-board`,
        tr: `${siteUrl}/tr/value-board`,
      },
    },
  };
}

export default function ValueBoardPage() {
  return <ValueBoardContent />;
}
