MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / isTrashViewActive

Function isTrashViewActive

packages/app-core/src/store.ts:1839–1845  ·  view source on GitHub ↗
(state: {
  paneLayout: PaneLayout
  activePaneId: string
})

Source from the content-addressed store, hash-verified

1837
1838/** True when the active pane's active tab is the built-in Trash view. */
1839export 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. */
1848export function isArchiveViewActive(state: {

Callers 1

buildCommandsFunction · 0.90

Calls 1

findLeafFunction · 0.90

Tested by

no test coverage detected