From ff6f504c550a0a5a0a440f229bbe7c8f3a23ccf1 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Thu, 15 Jan 2026 13:04:20 +0000 Subject: [PATCH] Update components/pricing.tsx --- components/pricing.tsx | 132 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 components/pricing.tsx diff --git a/components/pricing.tsx b/components/pricing.tsx new file mode 100644 index 0000000..f40a4a0 --- /dev/null +++ b/components/pricing.tsx @@ -0,0 +1,132 @@ +"use client"; +import { IconCircleCheckFilled } from "@tabler/icons-react"; +import { cn } from "@/lib/utils"; +import { tiers } from "@/constants/tier"; +import { useState } from "react"; +import { motion } from "framer-motion"; +import { Button } from "./ui/button"; + +export function Pricing() { + const [active, setActive] = useState("monthly"); + const tabs = [ + { name: "Monthly", value: "monthly" }, + { name: "Yearly", value: "yearly" }, + ]; + + return ( +
+
+ {tabs.map((tab) => ( + + ))} +
+
+ {tiers.map((tier, _tierIdx) => ( +
+
+

+ {tier.name} +

+

+ + {active === "monthly" ? tier.priceMonthly : tier.priceYearly} + +

+

+ {tier.description} +

+
    + {tier.features.map((feature) => ( +
  • +
  • + ))} +
+
+
+ +
+
+ ))} +
+
+ ); +}