import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { Link } from 'react-router-dom'; import { List as ImmutableList } from 'immutable'; const mapStateToProps = (state, props) => ({ copyright: state.getIn(['soapbox', 'copyright']), navlinks: state.getIn(['soapbox', 'navlinks', 'homeFooter'], ImmutableList()), }); export default @connect(mapStateToProps) class Footer extends ImmutablePureComponent { static propTypes = { copyright: PropTypes.string, navlinks: ImmutablePropTypes.list, } render() { const { copyright, navlinks } = this.props; return (