Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / store / selectors / popup.ts
blob035f8490e610e90494f6f7ff1db2659006e3c44a
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 =
10     (tabId: TabId) =>
11     (state: State): Maybe<PopupTabState> =>
12         state.popup.tabs?.[tabId];
14 export const selectPopupFilters = (state: State) => state.popup.filters;