nomadro/apps/nomadvip/app/vip/components/dashboard/UnlockedStats.tsx
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

33 lines
1016 B
TypeScript

"use client";
import { ASSET_STATS } from "@vip/app/data/vip.mock";
import styles from "../vip.module.css";
const STAT_ITEMS = [
{ key: "topics", label: "已解锁模块" },
{ key: "ebooks", label: "电子书" },
{ key: "videos", label: "视频" },
] as const;
export function UnlockedStats() {
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>已解锁</h2>
<div
className={`${styles.statsGrid4} animate__animated animate__fadeInUp`}
style={{ animationDelay: "0.2s", animationFillMode: "both" }}
>
{STAT_ITEMS.map(({ key, label }) => {
const value = String(ASSET_STATS[key as keyof typeof ASSET_STATS]);
return (
<div key={key} className={styles.card} style={{ textAlign: "center" }}>
<div className={styles.bigNumber}>{value}</div>
<div className={styles.bigNumberLabel}>{label}</div>
</div>
);
})}
</div>
</section>
);
}