SwitchAccountSubmenuItem
Individual selectable session row used inside the account switcher submenu.
Import
import { SwitchAccountSubmenuItem } from "@xylex-group/athena-auth-ui/plugins"Details
- Category:
component - Primary entrypoint:
@xylex-group/athena-auth-ui/plugins - Public entrypoints:
@xylex-group/athena-auth-ui/plugins - Source:
packages/heroui/src/components/auth/multi-session/switch-account-submenu-item.tsx
Props
| Prop | Type | Required | Notes |
|---|---|---|---|
deviceSession | { session: { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; } | Yes |
Notes
- These components are most useful when the multi-session plugin is registered so the required menu slots and account data are present.