import { Card, CardContent } from "@/components/ui/card" import { Button } from "@/components/ui/button" import { complaints } from "@/lib/admin-data" import { Search, MessageSquare, Clock, CheckCircle } from "lucide-react" export default function ComplaintsManagement() { return (
{/* Header */}

إدارة الشكاوى والدعم

{/* Stats Cards */}
12
شكاوى جديدة
8
قيد المعالجة
45
تم حلها
4.2
متوسط وقت الاستجابة (ساعات)
{/* Filters */}
{/* Complaints List */}
{complaints.map((complaint) => (

{complaint.subject}

من: {complaint.customerName}

رقم الشكوى: {complaint.id}

{complaint.priority === "high" ? "عالية" : complaint.priority === "medium" ? "متوسطة" : "منخفضة"} {complaint.status === "open" ? "مفتوحة" : complaint.status === "in-progress" ? "قيد المعالجة" : "محلولة"}

تاريخ الإنشاء: {new Date(complaint.date).toLocaleDateString("ar-SA")}

{complaint.assignedTo &&

مُسند إلى: {complaint.assignedTo}

}
))}
) }