import { getFormValues } from 'redux-form' ; import { createSelector } from 'reselect' ; import { path , defaultTo } from 'ramda' ; export const getNodeInfo = ( state ) => getFormValues ( 'NodeForm' ) ( state ) ; export const getNameSearch = ( state ) => getFormValues ( 'NameSearch' ) ( state ) ; export const getNodeData = ( state ) => state . nodeData ; export const getSettings = ( state ) => state . settings ; export const nameInfo = ( state ) => state . nameInfo ; export const auctionState = createSelector ( nameInfo , ni => defaultTo ( undefined ) ( path ( [ 'info' , 'state' ] , ni ) ) ) ;