PromucFlow_constructor/app/client/src/selectors/notificationSelectors.ts
2021-06-23 21:12:07 +05:30

14 lines
479 B
TypeScript

import { AppState } from "reducers";
export const notificationsSelector = (state: AppState) =>
state.ui.notifications.notifications;
export const unreadCountSelector = (state: AppState) =>
state.ui.notifications.unreadNotificationsCount;
export const isNotificationsListVisibleSelector = (state: AppState) =>
state.ui.notifications.showNotificationsMenu;
export const fetchingNotificationsSelector = (state: AppState) =>
state.ui.notifications.fetchingNotifications;