"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) => (
  • ))}
))}
); }