Athena

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

PropTypeRequiredNotes
featureTogglesWorkspaceFeatureTogglesYes
notificationPreferencesNotificationPreference[]Yes
onNotificationToggle(id: string, enabled: boolean) => voidYes
onToggleChange<K extends keyof WorkspaceFeatureToggles>(key: K, enabled: WorkspaceFeatureToggles[K]) => voidYes
preferenceSnapshotSavedAtstring | undefinedNo
preferenceSnapshotSource"default" | "session" | "local"Yes
sessionWorkspaceSessionSummaryYes

Notes

  • Workspace cards are the focused admin surfaces that power the optional workspace settings experience.
  • Most of them either consume WorkspaceRuntime state directly or call the exported workspace hooks against an Athena auth client.