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