UserMenu
AppUser dropdown opened by a trigger showing avatar, name and role. Accepts a SafeUser prop; the dropdown header shows the name and email.
<UserMenu
user={{
userId: 'u1',
email: 'jane@acme.com',
userRole: 'Admin',
userStatus: 'ACTIVE',
userPreferences: null,
userProfile: { name: 'Jane Doe', profilePicture: null },
}}
/><UserMenu
user={currentUser}
items={[
{ label: 'View Profile', icon: '👤', onClick: () => {} },
{ label: 'Billing', icon: '💳', onClick: () => {} },
{ type: 'separator' },
{ label: 'Sign out', icon: '↩️', danger: true, onClick: () => {} },
]}
/>