"use client"; import { useEffect, useState } from "react"; import { Spinner } from "../UI"; import { getStoredToken } from "../../lib/auth"; import { userService } from "../../services/user.service"; import type { UserDetail } from "../../types/user"; interface UserDetailModalProps { userId: string; onClose: () => void; } // ── small helper components ─────────────────────────────────────────────────── function DetailRow({ label, value }: { label: string; value?: string | null }) { return (
بيانات المستخدم
{user.name}
{user.userName && (@{user.userName}
)}