import React from 'react'; import { UserGroupIcon, HeartIcon, BuildingOffice2Icon, CalendarDaysIcon, CreditCardIcon, ChatBubbleLeftEllipsisIcon, BanknotesIcon, ArrowTrendingUpIcon, } from '@heroicons/react/24/outline'; interface StatCardProps { label: string; value: string | number; trend?: string; trendUp?: boolean; icon: React.ElementType; iconBg: string; iconColor: string; } function StatCard({ label, value, trend, trendUp, icon: Icon, iconBg, iconColor }: StatCardProps) { return (

{label}

{value}

{trend && (
{trend}
)}
); } const stats: StatCardProps[] = [ { label: 'کل کاربران', value: '۱۲,۴۸۴', trend: '۸٪ نسبت به ماه قبل', trendUp: true, icon: UserGroupIcon, iconBg: 'bg-violet-100', iconColor: 'text-violet-600', }, { label: 'پزشکان فعال', value: '۱,۲۸۴', trend: '۱۲٪ نسبت به ماه قبل', trendUp: true, icon: HeartIcon, iconBg: 'bg-emerald-100', iconColor: 'text-emerald-600', }, { label: 'کلینیک‌ها', value: '۳۲۱', trend: '۴٪ نسبت به ماه قبل', trendUp: false, icon: BuildingOffice2Icon, iconBg: 'bg-blue-100', iconColor: 'text-blue-600', }, { label: 'نوبت‌های امروز', value: '۱۴۸', trend: '۲۳٪ نسبت به دیروز', trendUp: true, icon: CalendarDaysIcon, iconBg: 'bg-orange-100', iconColor: 'text-orange-600', }, { label: 'پرداخت‌های امروز', value: '۴۸,۲۰۰,۰۰۰', trend: '۱۵٪ نسبت به دیروز', trendUp: true, icon: CreditCardIcon, iconBg: 'bg-pink-100', iconColor: 'text-pink-600', }, { label: 'نظرات در انتظار', value: '۱۲', icon: ChatBubbleLeftEllipsisIcon, iconBg: 'bg-yellow-100', iconColor: 'text-yellow-600', }, { label: 'درخواست تسویه', value: '۵', icon: BanknotesIcon, iconBg: 'bg-teal-100', iconColor: 'text-teal-600', }, ]; export default function DashboardPage() { return (

داشبورد

خلاصه وضعیت سیستم

{stats.map((stat) => ( ))}

فعالیت‌های اخیر

در حال توسعه...
); }