1 import type { Maybe, TabId } from '@proton/pass/types';
3 import type { PopupTabState } from '../reducers';
4 import type { State } from '../types';
6 export const selectPopupStateTabIds = (state: State): TabId[] =>
7 Object.keys(state.popup.tabs).map((val) => parseInt(val, 10));
9 export const selectPopupTabState =
11 (state: State): Maybe<PopupTabState> =>
12 state.popup.tabs?.[tabId];
14 export const selectPopupFilters = (state: State) => state.popup.filters;