import React from 'react' import { Helmet } from 'react-helmet' import { connect } from 'react-redux' import AccessDenied from './../Others/AccessDenied' class Admin extends React.Component { componentDidMount() {} render() { const { user } = this.props return (
mpwo - Admin {!user.isAdmin ? ( ) : (

Admin

)}
) } } export default connect( state => ({ user: state.user, }) )(Admin)