text: import DashboardComponent from "../components/DashboardComponent";
  import { NoSsr } from "@material-ui/core";
  import { updatepagepath } from "../lib/store";
  import { connect } from "react-redux";
  import { bindActionCreators } from 'redux'
  import { getPath } from "../lib/path";
  
  class Index extends React.Component {
    componentDidMount () {
      console.log(`path: ${getPath()}`);
      this.props.updatepagepath({ path : getPath() });
    }
  
    render () {
      return (
        <NoSsr>
          <DashboardComponent />
        </NoSsr>
      );
    }
  }
  
  const mapDispatchToProps = dispatch => ({ updatepagepath : bindActionCreators(updatepagepath, dispatch) })
  
  export default connect(
    null,
    mapDispatchToProps
  )(Index);