"use client"; import { useState } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { cn } from "@/lib/utils"; const formatPrice = (value: number) => `${value.toLocaleString("fa-IR")} ریال`; interface StatsCard9Props { title?: string; monthlyValue?: string; annualValue?: string; monthlyLabel?: string; annualLabel?: string; className?: string; } const StatsCard9 = ({ title = "درآمد تکرارشونده", monthlyValue = formatPrice(12450000), annualValue = formatPrice(149400000), monthlyLabel = "MRR — درآمد ماهانه تکرارشونده", annualLabel = "ARR — درآمد سالانه تکرارشونده", className, }: StatsCard9Props) => { const [period, setPeriod] = useState<"monthly" | "annual">("monthly"); return ( {title} setPeriod(v as "monthly" | "annual")} > ماهانه سالانه
{period === "monthly" ? monthlyValue : annualValue}

{period === "monthly" ? monthlyLabel : annualLabel}

); }; export { StatsCard9 };