2021-06-09 14:32:17 +00:00
|
|
|
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;
|
2021-06-23 15:42:07 +00:00
|
|
|
|
|
|
|
|
export const fetchingNotificationsSelector = (state: AppState) =>
|
|
|
|
|
state.ui.notifications.fetchingNotifications;
|