import React from 'react'; import { connect } from 'react-redux'; import { createDevTools } from 'redux-devtools'; import InspectorMonitor from 'redux-devtools-inspector-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import getOptions from './getOptions'; import TestGenerator from '../../../src'; export const getDevTools = (location) => createDevTools( [ { name: 'Test', component: TestGenerator, }, ...defaultTabs, ]} /> ); const UnconnectedDevTools = ({ location }) => { const DevTools = getDevTools(location); return ; }; const mapStateToProps = (state) => ({ location: state.router.location, }); export const ConnectedDevTools = connect(mapStateToProps)(UnconnectedDevTools);