"use client"; import { useEffect } from "react"; import { useTranslation } from "@/i18n/navigation"; import { getThemeConfig } from "@/config"; import SocialPlatformIcon from "../../components/SocialPlatformIcon"; export default function AboutContent() { const { t } = useTranslation("about"); useEffect(() => { window.history.scrollRestoration = "manual"; window.scrollTo(0, 0); return () => { window.history.scrollRestoration = "auto"; }; }, []); const config = getThemeConfig(); const linktreeUrl = config.linktreeUrl; const socialLinks = config.socialLinks ?? []; const teamMembers = config.teamMembers ?? []; return (

{t("title")}

{t("subtitle")}

{/* 团队成员 */} {teamMembers.length > 0 && (

{t("teamTitle")}

{t("teamDesc")}

{teamMembers.map((member) => { const content = (
{member.avatar ?? "👤"}

{member.name}

{member.role}

); if (member.link) { return ( {content} ); } return
{content}
; })}
)} {/* 社交平台 Linktree */} {(linktreeUrl || socialLinks.length > 0) && (

{t("linktreeTitle")}

{t("linktreeDesc")}

{(["domestic", "overseas"] as const).map((group) => { const items = socialLinks.filter((l) => l.group === group); if (items.length === 0) return null; return (

{group === "domestic" ? t("groupDomestic") : t("groupOverseas")}

{items.map((item) => (
{item.label}
{t("linktreeCta")}
))}
); })}
)}
); }