content: import * as adminMenuActions from 'actions/admin-menu';
  
  import bind from 'decorators/bind';
  import Component from 'components/component';
  import React from 'react';
  import PropTypes from 'prop-types';
  import {connect} from 'react-redux';
  import {bindActionCreators} from 'redux';
  
  import Menu from './components/menu';
  
  @connect(
    (state) => ({
      pathname: state.router.location.pathname
    }),
    (dispatch) => bindActionCreators(adminMenuActions, dispatch)
  )
  export default class SettingsMenuContainer extends Component {
    static propTypes = {
      closeAdminMenu: PropTypes.func.isRequired,
      openAdminMenu: PropTypes.func.isRequired,
      pathname: PropTypes.string.isRequired
    };
  
    componentDidMount () {
      this.props.openAdminMenu();
    }
  
    @bind
    onBack () {
      this.props.closeAdminMenu();
    }
  
    render () {
      const {pathname} = this.props;
      return (
        <Menu
          onBack={this.onBack}
          pathname={pathname}
        />
      );
    }
  }
  