"use client"; import { Check } from "lucide-react"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { Switch } from "@/components/ui/switch"; import { cn } from "@/lib/utils"; const formatPrice = (value: string | number) => `${(typeof value === "string" ? Number(value) : value).toLocaleString("fa-IR")} ریال`; const plans = [ { id: "free", name: "رایگان", monthlyPrice: 0, yearlyPrice: 0, description: "رایگان برای همه", features: [ "اعضای نامحدود", "۲ تیم", "۵۰۰ مورد کاری", "یکپارچه‌سازی پیام‌رسان تیمی و مخزن کد", ], }, { id: "startup", name: "استارتاپ", monthlyPrice: 80000, yearlyPrice: 60000, features: [ "همه‌چیز در طرح رایگان، به‌علاوه:", "هوش مصنوعی نوافروش", "تیم‌های نامحدود", "موارد کاری و آپلود فایل نامحدود", "بینش‌های نوافروش", "نقش‌های مدیریتی", ], }, { id: "enterprise", name: "سازمانی", monthlyPrice: 80000, yearlyPrice: 60000, features: [ "همه‌چیز در طرح رایگان، به‌علاوه:", "هوش مصنوعی نوافروش", "Supermainline AGI", "ناهار روزانه رایگان", "ممیزی‌های تصادفی HIPAA", ], }, ]; interface Pricing22Props { className?: string; } const Pricing22 = ({ className }: Pricing22Props) => { const [isAnnual, setIsAnnual] = useState(false); return (

تعرفه‌ها

نوافروش را رایگان با کل تیم خود استفاده کنید. با ارتقای طرح، موارد کاری نامحدود، کنترل‌های امنیتی پیشرفته و امکانات بیشتر را فعال کنید.

{plans.map((plan) => (

{plan.name}

{formatPrice( isAnnual ? plan.yearlyPrice : plan.monthlyPrice, )}{" "} {plan.id !== "free" && ( به ازای هر کاربر در{" "} {isAnnual ? "سال" : "ماه"} )}
{plan.id !== "free" ? (
setIsAnnual(!isAnnual)} /> صورتحساب سالانه
) : ( {plan.description} )}
{plan.features.map((feature) => (
{feature}
))}
))}
); }; export { Pricing22 };