import { createStructuredSelector } from 'reselect'; import Connect from 'components/pages/Connect'; import { getConnectDefaults, getApp } from 'state/app'; import { join } from 'state/channels'; import { connect as connectNetwork } from 'state/networks'; import { select } from 'state/tab'; import connect from 'utils/connect'; const mapState = createStructuredSelector({ defaults: getConnectDefaults, hexIP: state => getApp(state).hexIP, query: state => state.router.query }); const mapDispatch = { join, connect: connectNetwork, select }; export default connect(mapState, mapDispatch)(Connect);