import { ArrowDownRight, ArrowUpRight } from "lucide-react"; import { Card, CardContent } from "@/components/ui/card"; import { cn } from "@/lib/utils"; const formatPrice = (value: number) => `${value.toLocaleString("fa-IR")} ریال`; const formatChangeBadge = (value: number) => `${new Intl.NumberFormat("fa-IR", { minimumFractionDigits: 1, maximumFractionDigits: 1, }).format(Math.abs(value))}٪`; interface StatsCard10Props { title?: string; value?: string; change?: number; period?: string; className?: string; } const StatsCard10 = ({ title = "فروش کل", value = formatPrice(23456000), change = 12.5, period = "نسبت به هفته قبل", className, }: StatsCard10Props) => { const isPositive = change >= 0; return (

{title}

{value}

{isPositive ? ( ) : ( )} {formatChangeBadge(change)}

{period}

); }; export { StatsCard10 };