import { useTranslations } from "next-intl"; import { getTranslations } from "next-intl/server"; import { buildAlternates } from "../../../i18n/seo"; import { SiteHeader } from "../components/site-header"; export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; const t = await getTranslations({ locale, namespace: "community" }); return { title: t("metaTitle"), description: t("metaDescription"), alternates: buildAlternates(locale, "/community"), }; } function CommunityLink({ href, icon, name, action, description, }: { href: string; icon: React.ReactNode; name: string; action: string; description: string; }) { return (
{icon}
{name}
{description}
{action} →
); } export default function CommunityPage() { const t = useTranslations("community"); return (

{t("title")}

{t("description")}

} /> } /> } /> } /> } />
); }