sabo/src/components/dashboard/header-user-menu.tsx
When to use
- Access account/profile links and sign-out from the top-right of the dashboard.
Usage
Styling tip
- Provide keyboard focus; ensure menu items are clear and group destructive actions.
Steps
1
Customize menu items
Edit
header-user-menu.tsx to modify the dropdown items. The component uses useAuth() to access the current user.2
Sign-out flow
The component implements client-side sign-out using
createClient() from @/lib/supabase/client:Sign-out is client-side for immediate feedback. The Supabase client handles session cleanup automatically.
3
User display
The component extracts user info from
user.user_metadata (full_name, name, picture, avatar_url) with fallbacks to email.