UNPKG

bonsai-analyzer

Version:
23 lines (18 loc) 472 B
/* * @flow */ import type { State } from '../../utils/reducer'; import type { Props } from './LoopTable'; import { connect } from 'react-redux'; import LoopTable from './LoopTable'; const mapStateToProps = (state: State): Props => { return { extendedModules: state.calculatedFullModuleData ? state.calculatedFullModuleData.extendedModules : [], }; }; export default connect<Props, {||}, _, _, _, _>( mapStateToProps, () => ({}) )(LoopTable);