"use client"; import NumberFlow from "@number-flow/react"; import { motion } from "framer-motion"; import { ArrowLeft } from "lucide-react"; import React, { useRef, useState } from "react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; const numberFlowLocales = "fa-IR-u-nu-latn"; const formatNumber = (value: number) => value.toLocaleString("fa-IR"); interface Stats15Props { className?: string; } const Stats15 = ({ className }: Stats15Props) => { const ref = useRef(null); const IllustrationRef = useRef(null); const [selectedYear, setSelectedYear] = useState(2021); const Stats = { 2021: { TotalRevenue: 12.3, TotalUsers: 0.3, CompanyGrowth: 300, NewCustomers: 100, BigCorpClients: 10, PathHeight: 0, }, 2022: { TotalRevenue: 105, TotalUsers: 50, CompanyGrowth: 30, NewCustomers: 1.5, BigCorpClients: 75, PathHeight: 55, }, 2023: { TotalRevenue: 250, TotalUsers: 120, CompanyGrowth: 45, NewCustomers: 2.8, BigCorpClients: 150, PathHeight: 105, }, 2024: { TotalRevenue: 500, TotalUsers: 300, CompanyGrowth: 65, NewCustomers: 4.2, BigCorpClients: 250, PathHeight: 160, }, }; const years = Object.keys(Stats).map(Number); return ( مسیر رشد درآمد، سالبهسال کاربران فعال، رشد MRR و حسابهای جدید را در یک نمای زمانی شفاف مقایسه کنید. مستندات API شروع رایگان کاربر فعال رشد MRR حساب جدید قرارداد سازمانی {years.map((year) => ( setSelectedYear(year)} className={`relative rounded-full px-4 py-1 text-sm transition-all ease-out ${ selectedYear === year ? "bg-primary text-primary-foreground md:translate-x-8" : "bg-muted/70 group-hover:translate-x-4 group-hover:bg-muted" }`} > {formatNumber(year)} - {formatNumber(year + 1)} ))} ); }; export { Stats15 }; const LinkIllustration = ({ className = "", PathHeight = 0 }) => { return ( ); };
کاربران فعال، رشد MRR و حسابهای جدید را در یک نمای زمانی شفاف مقایسه کنید.
کاربر فعال
رشد MRR
حساب جدید
قرارداد سازمانی