"use client"; import { Check, ChevronDown, Info, X } from "lucide-react"; import { Fragment, useState } from "react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/components/ui/collapsible"; import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; const formatPrice = (value: string | number) => `${(typeof value === "string" ? Number(value) : value).toLocaleString("fa-IR")} ریال`; const plans = [ { title: "رایگان", price: { monthly: 9, annually: 90000 }, href: "#", recommended: false, }, { title: "پایه", price: { monthly: 50, annually: 450000 }, href: "#", recommended: false, }, { title: "تیم", price: { monthly: 100, annually: 900000 }, href: "#", recommended: true, }, { title: "سازمانی", price: { monthly: 200, annually: 160000 }, href: "#", recommended: false, }, ]; const featureMatrix = [ { title: "نمای کلی", features: [ { title: "امکان همیشه شامل‌شده", inclusions: [ { plan: "رایگان", content: "امکانات پایه برای شروع سریع و بدون هزینه.", }, { plan: "پایه", content: "امکانات بیشتر برای کسب‌وکارهای کوچک.", }, { plan: "تیم", content: "امکانات تیمی برای همکاری بهتر.", }, { plan: "سازمانی", content: "امکانات کامل برای سازمان‌های بزرگ.", }, ], }, { title: "تعداد محصولات", info: "حداکثر تعداد محصول قابل ثبت", inclusions: [ { plan: "رایگان", content: "۱" }, { plan: "پایه", content: "۱" }, { plan: "تیم", content: "۳" }, { plan: "سازمانی", content: "۵" }, ], }, { title: "تعداد تراکنش‌ها", info: "سقف تراکنش‌های ماهانه", inclusions: [ { plan: "رایگان", content: "۳۰ در ماه" }, { plan: "پایه", content: "نامحدود" }, { plan: "تیم", content: "نامحدود" }, { plan: "سازمانی", content: "نامحدود" }, ], }, ], }, { title: "سایر امکانات", features: [ { title: "امکان پایه", inclusions: [ { plan: "رایگان", content: , }, { plan: "پایه", content: , }, { plan: "تیم", content: , }, { plan: "سازمانی", content: , }, ], }, { title: "امکان سازمانی", info: "فقط در طرح سازمانی در دسترس است", inclusions: [ { plan: "رایگان", content: , }, { plan: "پایه", content: , }, { plan: "تیم", content: , }, { plan: "سازمانی", content: , }, ], }, { title: "امکان اختیاری", info: "به‌صورت افزونه قابل فعال‌سازی است", inclusions: [ { plan: "رایگان", content: , }, { plan: "پایه", content: , }, { plan: "تیم", content: افزونه, }, { plan: "سازمانی", content: افزونه, }, ], }, ], }, ]; interface Pricing11Props { className?: string; } const Pricing11 = ({ className }: Pricing11Props) => { const [billing, setBilling] = useState<"monthly" | "annually">("monthly"); return (

طرح‌های تعرفه

طرح مناسب خود را انتخاب کنید و همین امروز شروع رایگان.

صورتحساب void} > ماهانه سالانه
{plans.map((plan) => (

{plan.title}

{formatPrice(plan.price[billing])} در ماه

))}
{featureMatrix.map((category) => (

{category.title}

{category.features.map((feature) => (

{feature.title}{" "} {feature.info && ( )}

{feature.info && ( {feature.info} )}
{feature.inclusions.map((inclusion) => (
{inclusion.content}
))}

{feature.title} {feature.info && ( )}

{feature.info && ( {feature.info} )}
{feature.inclusions.map((inclusion) => (
{inclusion.plan}
{inclusion.content}
))}
))}
))}

* توضیحات و شرایط تکمیلی

); }; export { Pricing11 };