()
| 2 | import { IonAvatar } from "@ionic/react"; |
| 3 | |
| 4 | const Profile: React.FC = () => { |
| 5 | const { user, isLoading } = useAuth0(); |
| 6 | |
| 7 | if (isLoading) { |
| 8 | return <div>Loading ...</div>; |
| 9 | } |
| 10 | |
| 11 | if (!user) return null; |
| 12 | |
| 13 | return ( |
| 14 | <div className="profile-container"> |
| 15 | <IonAvatar className="avatar"> |
| 16 | <img src={user.picture} alt={user.name} /> |
| 17 | </IonAvatar> |
| 18 | <h2>{user.name}</h2> |
| 19 | <p>{user.email}</p> |
| 20 | </div> |
| 21 | ); |
| 22 | }; |
| 23 | |
| 24 | export default Profile; |
nothing calls this directly
no outgoing calls
no test coverage detected