import {
  ShoppingCart,
  Clock,
  Users,
  Trash2,
  Star,
  ShieldCheck,
  ExternalLink,
  XCircle,
} from "lucide-react"
import { FeatureUpgradeTab } from "@/components/pro/feature-upgrade-tab"

const proFeatures = [
  {
    icon: ShieldCheck,
    title: "Admin Approval Mode",
    description:
      "Require manual admin approval for new registrations instead of email verification links.",
  },
  {
    icon: ShoppingCart,
    title: "Checkout Verification",
    description:
      "Require email verification for logged-in checkout orders.",
  },
  {
    icon: ExternalLink,
    title: "Custom Redirect URL",
    description:
      "Redirect users to a custom page after they verify their email address.",
  },
  {
    icon: XCircle,
    title: "Account Rejection",
    description:
      "Reject pending registrations with a customizable notification email to the user.",
  },
  {
    icon: Clock,
    title: "Link Expiry & Resend Limits",
    description:
      "Control how long verification links remain valid and how many times users can resend.",
  },
  {
    icon: Users,
    title: "Pending Users Management",
    description:
      "View, search, approve, resend, and delete unverified users with bulk actions.",
  },
  {
    icon: Trash2,
    title: "Auto-delete Unverified Users",
    description:
      "Automatically remove users who don't verify within a configurable time period.",
  },
  {
    icon: Star,
    title: "Priority Support",
    description:
      "Get faster response times and dedicated help for your email verification setup.",
  },
]

const checklist = [
  "Admin approval verification mode",
  "Pending approval, account approved & admin notification emails",
  "Account rejection with notification email",
  "Custom redirect URL after verification",
  "Logged-in checkout verification",
  "Verification link expiry controls",
  "Resend email limits",
  "Auto-delete unverified users",
  "Pending users dashboard with bulk actions",
]

export function EmailVerificationUpgradeTab() {
  return (
    <FeatureUpgradeTab
      headline="Unlock the Full Power of Email Verification"
      description="Upgrade to Swift Commerce Pro for checkout verification, pending users management, auto-cleanup, and complete control over verification links."
      features={proFeatures}
      checklist={checklist}
    />
  )
}
