ui/client/features/shell/hooks/useActiveTabs
Cockpit client (features), next. Source: ui/client/features/shell/hooks/useActiveTabs.tsx.
Functions#
useActiveTabs()#
useActiveTabs():
object
Defined in: ui/client/features/shell/hooks/useActiveTabs.tsx:8
Remembers which tab is selected per region (a tab that disappears or is disabled falls back to the first enabled one where it is resolved).
Returns#
object
active
active:
Record<ShellRegion,string|null>
select
select: (
region,id) =>void
Parameters
region
id
string
Returns
void