import { IgrAvatar } from 'igniteui-react'; import { useAuth } from '../AuthContext'; import styles from './Profile.module.css'; export default function Profile() { const { currentUser } = useAuth(); const initials = ((currentUser?.given_name?.[0] ?? '') + (currentUser?.family_name?.[0] ?? '')).toUpperCase() || 'U'; return (

Signed in

{currentUser?.name || 'Your profile'}

Your account details are available on this protected route.

First name
{currentUser?.given_name || 'Not provided'}
Last name
{currentUser?.family_name || 'Not provided'}
Email
{currentUser?.email || 'No email available'}
); }