import { useTranslations } from "next-intl"; import Link from "next/link"; import { ContentCard } from "@/components/public/ui"; export const dynamic = "force-dynamic"; export const metadata = { title: "Community" }; 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")}
))}
); }