WorkspaceControlsCard
Workspace card for feature toggles, notification preferences, and preference snapshot state.
Import
import { WorkspaceControlsCard } from "@xylex-group/athena-auth-ui"Also exported from: @xylex-group/athena-auth-ui/plugins
Details
- Category:
component - Primary entrypoint:
@xylex-group/athena-auth-ui - Public entrypoints:
@xylex-group/athena-auth-ui,@xylex-group/athena-auth-ui/plugins - Source:
packages/heroui/src/components/auth/workspace/workspace-controls-card.tsx
Props
| Prop | Type | Required | Notes |
|---|---|---|---|
featureToggles | WorkspaceFeatureToggles | Yes | |
notificationPreferences | NotificationPreference[] | Yes | |
onNotificationToggle | (id: string, enabled: boolean) => void | Yes | |
onToggleChange | <K extends keyof WorkspaceFeatureToggles>(key: K, enabled: WorkspaceFeatureToggles[K]) => void | Yes | |
preferenceSnapshotSavedAt | string | undefined | No | |
preferenceSnapshotSource | "default" | "session" | "local" | Yes | |
session | WorkspaceSessionSummary | Yes |
Notes
- Workspace cards are the focused admin surfaces that power the optional workspace settings experience.
- Most of them either consume
WorkspaceRuntimestate directly or call the exported workspace hooks against an Athena auth client.