"use client"; import Link from "next/link"; import { ArrowRight, BarChart3, Crown, Lock, ShieldCheck, Sparkles, Zap, } from "lucide-react"; import { useI18n } from "@/hooks/useI18n"; type ProFeaturePaywallProps = { feature: "today" | "history" | "future"; }; function getFeatureLabel( locale: "zh-CN" | "en-US", feature: "today" | "history" | "future", ) { if (locale === "en-US") { if (feature === "today") return "Intraday Analysis"; if (feature === "history") return "History Reconciliation"; return "Future-date Analysis"; } if (feature === "today") return "今日日内分析"; if (feature === "history") return "历史对账"; return "未来日期分析"; } export function ProFeaturePaywall({ feature }: ProFeaturePaywallProps) { const { locale } = useI18n(); const featureLabel = getFeatureLabel(locale, feature); const isEn = locale === "en-US"; return (

{isEn ? "Unlock PolyWeather Pro" : "开启 PolyWeather Pro"}

{isEn ? `This module (${featureLabel}) is available for subscribers only. Upgrade to unlock advanced weather intelligence.` : `当前模块(${featureLabel})仅对订阅用户开放。升级后可解锁更完整的气象分析能力。`}

{[ { icon: Zap, text: isEn ? "Real-time radar and lightning tracking" : "实时雷达与闪电追踪", }, { icon: ShieldCheck, text: isEn ? "15-day high-precision trend analysis" : "15 天高精度趋势分析", }, { icon: BarChart3, text: isEn ? "Pro-grade station raw data" : "专业级气象站原始数据", }, { icon: Sparkles, text: isEn ? "Ad-free experience across all surfaces" : "全平台无广告体验", }, ].map((item) => (
{item.text}
))}
{isEn ? "Upgrade now - $5 / month" : "立即升级 - $5 / 月"}
{isEn ? "Payments are secured with AES-256 encryption" : "所有交易均经过 AES-256 加密保护"}
); }