import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Link } from 'react-router' import Player from '../components/Player' import Icon from '../components/Icon' import Thumbnail from '../components/Thumbnail' import FontAwesome from 'react-fontawesome' import * as mopidyActions from '../services/mopidy/actions' class Sidebar extends React.Component{ constructor(props) { super(props); } componentDidMount(){ console.log( this.props ) } render(){ return ( ); } } /** * Export our component * * We also integrate our global store, using connect() **/ const mapStateToProps = (state, ownProps) => { return state; } const mapDispatchToProps = (dispatch) => { return { mopidyActions: bindActionCreators(mopidyActions, dispatch) } } export default connect(mapStateToProps, mapDispatchToProps)(Sidebar)