(state: {
paneLayout: PaneLayout
activePaneId: string
})
| 1837 | |
| 1838 | /** True when the active pane's active tab is the built-in Trash view. */ |
| 1839 | export function isTrashViewActive(state: { |
| 1840 | paneLayout: PaneLayout |
| 1841 | activePaneId: string |
| 1842 | }): boolean { |
| 1843 | const leaf = findLeaf(state.paneLayout, state.activePaneId) |
| 1844 | return leaf?.activeTab === TRASH_TAB_PATH |
| 1845 | } |
| 1846 | |
| 1847 | /** True when the active pane's active tab is the built-in Archive view. */ |
| 1848 | export function isArchiveViewActive(state: { |
no test coverage detected