"use client"; import { Link, useTranslation } from "@/i18n/navigation"; import ShopCard from "./ShopCard"; const linkKeys = ["github", "destinations", "appDownload"] as const; const linkIcons: Record<(typeof linkKeys)[number], string> = { github: "📦", destinations: "🗺️", appDownload: "📱", }; const linkHrefs: Record<(typeof linkKeys)[number], { href: string; newTab?: boolean }> = { github: { href: "https://github.com" }, destinations: { href: "#" }, appDownload: { href: "/app" }, }; export default function Community() { const { t } = useTranslation("community"); return (
{/* 电商独立站卡片 */}
{/* 数字游民社区 - 优化布局 */}
👥 {t("nomadCommunity")}

{t("joinTitle")}

{t("joinDesc")}

{t("applyForm")} {t("approveJoin")}
📝
{t("applyNow")}
{t("applyHint")}

{t("resourcesTitle")}

{t("contributeSubtitle")}
{t("contributeSubtitle2")}

{linkKeys.map((key) => { const { href, newTab } = linkHrefs[key]; const content = ( <> {linkIcons[key]}

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

{t(`links.${key}.desc`)}

{t(`links.${key}.label`)}
); return ( {content} ); })}
); }