import PropTypes from 'prop-types' import React, {Component} from 'react' export default class Selector extends Component { state = {} render () { const { states, selectedKey, actions, store, modifyBackgroundConnection, backGroundConnectionModifiers, } = this.props const selected = this.state.selected || selectedKey return ( ) } } Selector.propTypes = { states: PropTypes.object.isRequired, selectedKey: PropTypes.string.isRequired, actions: PropTypes.object.isRequired, store: PropTypes.object.isRequired, modifyBackgroundConnection: PropTypes.func.isRequired, backGroundConnectionModifiers: PropTypes.object.isRequired, }