[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
461 B

import values from 'lodash/values'
import { AppState } from '../types'
export const getMenuCollapsed = (state: AppState) => state.menu.collapsed
export const getAuthenticated = (state: AppState) => state.authentication.authenticated
export const getNotifications = (state: AppState) => state.notifications
export const getFetching = (state: AppState) => {
return values(state.requests).reduce((fetching, request) => fetching || request.fetching, false)
}