"use client"; import { buttonVariants } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { PLANS, cn } from "@/utils"; import { motion } from "framer-motion"; import { CheckCircleIcon } from "lucide-react"; import Link from "next/link"; import { useState } from "react"; type Tab = "monthly" | "yearly"; const PricingCards = () => { const MotionTabTrigger = motion(TabsTrigger); const [activeTab, setActiveTab] = useState("monthly"); return ( setActiveTab("monthly")} className="relative" > {activeTab === "monthly" && ( )} Monthly setActiveTab("yearly")} className="relative" > {activeTab === "yearly" && ( )} Yearly {PLANS.map((plan) => ( {plan.name} {plan.info}
${plan.price.monthly} {plan.name !== "Free" ? "/month" : ""}
{plan.features.map((feature, index) => (

{feature.text}

{feature.tooltip && (

{feature.tooltip}

)}
))}
{plan.btn.text}
))}
{PLANS.map((plan) => ( {plan.name} {plan.info}
${plan.price.yearly}
{plan.name !== "Free" ? "/year" : ""}
{plan.name !== "Free" && ( -12% )}
{plan.features.map((feature, index) => (

{feature.text}

{feature.tooltip && (

{feature.tooltip}

)}
))}
{plan.btn.text}
))}
); }; export default PricingCards;