"use client"; import { useState } from "react"; import { useTranslation } from "@/i18n/navigation"; import { Link } from "@/i18n/navigation"; import Footer from "@/app/components/Footer"; const PLANS = [ { id: "free", key: "free", price: 0, priceYear: 0, features: ["browse"], highlight: false }, { id: "basic", key: "basic", price: 39, priceYear: 390, features: ["browse", "noAds", "advancedFilter", "unlimitedSwipe", "priorityEvent"], highlight: true }, { id: "pro", key: "pro", price: 149, priceYear: 1490, features: ["browse", "noAds", "advancedFilter", "unlimitedSwipe", "priorityEvent", "crmRoster", "oneOnOne", "gigAccess", "dashboard"], highlight: false }, ] as const; export default function PricingPage() { const { t } = useTranslation("pricing"); const [yearly, setYearly] = useState(false); return (

{t("title")}

{t("subtitle")}

{t("monthly")} {t("yearly")}
{PLANS.map((plan) => { const displayPrice = yearly ? plan.priceYear : plan.price; const priceKey = yearly ? "perYear" : "perMonth"; return (

{t(plan.key)}

{displayPrice === 0 ? "¥0" : `¥${displayPrice.toLocaleString()}`} {displayPrice > 0 && ( {t(priceKey)} )}
{yearly && plan.priceYear > 0 && (

省 ¥{(plan.price * 12 - plan.priceYear).toLocaleString()}

)}
    {plan.features.map((f) => (
  • ✓ {t(`features.${f}`)}
  • ))}
{plan.id === "free" ? t("getStarted") : t("upgrade")}
); })}

{t("features.experienceCamp")}

); }