RequireActiveTenancy
Ensures that a valid organization and workspace (if enabled) are selected before rendering its children. If no valid tenancy exists, shows an organization/workspace selector dialog.Validation
Returnsnull while loading. Checks for:
- Active organization selected (if organizations enabled)
- Active workspace selected (if workspaces enabled)
- No eligibility restrictions on current memberships
Params
Content to render when tenancy is valid.
Related
- OrganizationSwitcher - Organization switcher
- useActiveOrganization - Active organization hook
- useActiveWorkspace - Active workspace hook
