(state: RightSidebarLayoutState, tab: TabType)
| 471 | } |
| 472 | |
| 473 | export function toggleTab(state: RightSidebarLayoutState, tab: TabType): RightSidebarLayoutState { |
| 474 | return hasTab(state, tab) ? removeTabEverywhere(state, tab) : selectOrAddTab(state, tab); |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * Collect all tabs from all tabsets with their tabset IDs. |
no test coverage detected