[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.
 
 

11 lines
627 B

import { denormalize } from 'src/utils/normalization'
import { AppState, EntityType, App, Installation } from 'src/types'
export const getInstallations = (state: AppState) => denormalize(state.composer.installations, EntityType.Installation, state.entities) as Installation[]
export const getError = (state: AppState) => state.composer.error
export const getHeight = (state: AppState) => state.composer.height
export const getSelectedInstallation = (state: AppState) => {
if (!state.composer.selected) return
return denormalize([state.composer.selected], EntityType.Installation, state.entities)[0] as Installation
}