import React from 'react'; import createReactClass from 'create-react-class'; import Reflux from 'reflux'; import ConfigStore from 'app/stores/configStore'; import {Config} from 'app/types'; import getDisplayName from 'app/utils/getDisplayName'; type InjectedConfigProps = { config: Config; }; type State = { config: Config; }; /** * Higher order component that passes the config object to the wrapped component */ const withConfig =
( WrappedComponent: React.ComponentType
) => createReactClass< Omit
& Partial