import {
  BarChart3,
  Globe,
  MapPin,
  Palette,
  ShieldCheck,
  Star,
  UserCheck,
} from "lucide-react"
import { FeatureUpgradeTab } from "@/components/pro/feature-upgrade-tab"

const proFeatures = [
  {
    icon: Globe,
    title: "Additional CAPTCHA Providers",
    description:
      "Choose Cloudflare Turnstile or hCaptcha as lightweight, privacy-friendly alternatives to Google reCAPTCHA.",
  },
  {
    icon: BarChart3,
    title: "Failed Attempt Analytics",
    description:
      "Track CAPTCHA verification trends, blocked IPs, failure rates by location, and review recent failed attempts.",
  },
  {
    icon: UserCheck,
    title: "Role-Based Bypass",
    description:
      "Automatically skip CAPTCHA challenges for trusted user roles like administrators and shop managers.",
  },
  {
    icon: MapPin,
    title: "Additional Locations",
    description:
      "Protect WooCommerce payment methods and product review forms with CAPTCHA.",
  },
  {
    icon: Palette,
    title: "Theme & Size Customization",
    description:
      "Choose between light and dark themes, and normal or compact widget sizes.",
  },
  {
    icon: ShieldCheck,
    title: "IP Whitelist",
    description:
      "Bypass CAPTCHA for trusted IP addresses and CIDR ranges.",
  },
  {
    icon: Star,
    title: "Priority Support",
    description:
      "Get faster response times and dedicated help for your CAPTCHA setup.",
  },
]

const checklist = [
  "Cloudflare Turnstile provider",
  "hCaptcha provider",
  "Failed attempt analytics dashboard",
  "Role-based CAPTCHA bypass",
  "Add Payment Method protection",
  "Product Review protection",
  "Light & Dark themes",
  "Normal & Compact sizes",
  "IP address whitelisting",
  "CIDR range support",
]

export function RecaptchaUpgradeTab() {
  return (
    <FeatureUpgradeTab
      headline="Unlock the Full Power of CAPTCHA Protection"
      description="Upgrade to Swift Commerce Pro for additional CAPTCHA providers like Cloudflare Turnstile and hCaptcha, extra protection locations, appearance customization, and IP whitelisting."
      features={proFeatures}
      checklist={checklist}
    />
  )
}
