import { connect } from 'react-redux';
import TocWrapper from './toc-wrapper';
import { SET_MONSTER_PANE_VISABILITY, SET_SELECTED_MONSTER } from '../redux/actions/action-constants';

function mapStateToProps(state) {
console.log(6, arguments)
  return {
    monsters: state.monsters
  };
}

function mapDispatchToProps(dispatch, state) {
  return {
    setSelectedMonster: (monster) => {
      dispatch({
        type: SET_SELECTED_MONSTER,
        data: monster || null
      });
      dispatch({
        type: SET_MONSTER_PANE_VISABILITY,
        data: true
      });
    }
  };
}

const TocContainer = connect(mapStateToProps, mapDispatchToProps)(TocWrapper);

export default TocContainer;

@@ -214,34 +214,8 @@
 ) %7B%0A
-console.log(6, arguments)%0A
   re

remove console statement