import type { Metadata } from "next"; import { useTranslations } from "next-intl"; import { getTranslations } from "next-intl/server"; import Link from "@/components/link"; import { ContentCard } from "@/components/public/ui"; export async function generateMetadata(): Promise { const t = await getTranslations("pages.community"); return { title: t("title"), description: t("subtitle"), openGraph: { title: t("title"), description: t("subtitle"), type: "website", }, }; } const LINKS = [ { key: "rankings", href: "/rankings", icon: "🏆", }, { key: "staff", href: "/staff", icon: "🛡️", }, { key: "news", href: "/news", icon: "📰", }, { key: "photos", href: "/photos", icon: "📸", }, { key: "guilds", href: "/guilds", icon: "🚪", }, { key: "leaderboards", href: "/leaderboard", icon: "📊", }, ]; export default function CommunityPage() { const t = useTranslations("pages.community"); return (
{LINKS.map((l) => (
{l.icon}

{t(`links.${l.key}.title`)}

{t(`links.${l.key}.text`)}

{t("open")}
))}
); }