import { FiX, FiEdit2 } from "react-icons/fi"; interface Account { id: number; isDefault: boolean; name: string; } interface UserData { id: number; name: string; email: string; language: string; account: Account; } interface UserProfileProps { userData: UserData; } const UserProfile: React.FC = ({ userData }) => { return (
{/* Profile Picture */}
{userData.name.slice(0, 2).toUpperCase()}
{/* Info Fields */}
{/* Row: Name */}
Name
{userData.name}
{/* Row: Email */}
Email
{userData.email}
{/* Row: Account Name */}
Account name
{userData.account.name}
); }; export default UserProfile;