"use client" import { useState } from "react" import { Check, HelpCircle } from "lucide-react" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" import { BillingToggle } from "./billing-toggle" import { cn } from "@/lib/utils" const plans = [ { name: "Free", description: "For individuals just getting started", monthlyPrice: 0, yearlyPrice: 0, features: [ "1 user", "5 projects", "Up to 1GB storage", "Basic support", { name: "Limited API access", tooltip: "Up to 100 requests per day" }, { name: "Community access", tooltip: "Access to our community forums" }, ], cta: "Get Started", popular: false, }, { name: "Pro", description: "For professionals and small teams", monthlyPrice: 15, yearlyPrice: 144, features: [ "Up to 5 users", "20 projects", "Up to 10GB storage", "Priority support", { name: "Advanced API access", tooltip: "Up to 10,000 requests per day" }, { name: "Team collaboration", tooltip: "Real-time collaboration features" }, "Custom domains", ], cta: "Subscribe", popular: true, }, { name: "Premium", description: "For growing teams with advanced needs", monthlyPrice: 30, yearlyPrice: 288, features: [ "Up to 10 users", "Unlimited projects", "Up to 100GB storage", "24/7 phone support", { name: "Enterprise API access", tooltip: "Unlimited API requests" }, { name: "Advanced analytics", tooltip: "Detailed usage and performance metrics" }, "Custom domains", "SSO authentication", ], cta: "Subscribe", popular: false, }, { name: "Enterprise", description: "For large organizations with custom requirements", monthlyPrice: null, yearlyPrice: null, features: [ "Unlimited users", "Unlimited projects", "Unlimited storage", "Dedicated support team", { name: "Custom API solutions", tooltip: "Tailored API solutions for your needs" }, { name: "Advanced security", tooltip: "Enhanced security features and compliance" }, "Custom domains", "SSO authentication", "Dedicated infrastructure", "Custom integrations", ], cta: "Contact Sales", popular: false, }, ] export default function PricingSection() { const [billingCycle, setBillingCycle] = useState<"monthly" | "yearly">("monthly") const yearlyDiscount = 20 return (

Simple, transparent pricing

Choose the perfect plan for your needs. Always know what you'll pay.

{billingCycle === "yearly" && (
Save {yearlyDiscount}% with yearly billing
)}
{plans.map((plan) => { const price = billingCycle === "monthly" ? plan.monthlyPrice : plan.yearlyPrice const priceDisplay = price === null ? "Custom pricing" : `$${price}` const interval = billingCycle === "monthly" ? "/month" : "/year" return ( {plan.popular && (
Popular
)} {plan.name} {plan.description}
{priceDisplay} {price !== null && {interval}}
    {plan.features.map((feature, index) => (
  • {typeof feature === "string" ? ( feature ) : ( {feature.name}

    {feature.tooltip}

    )}
  • ))}
) })}

All plans include a 14-day free trial. No credit card required.

) }