import React from 'react'; import { Link, withRouter } from 'react-router-dom'; import './adminHeader.scss'; import { adminMenu } from '../../state/adminMenu'; const adminHeader = (props) => { const logout = (e) => { localStorage.removeItem('user'); props.history.push('/'); }; const clickEventHandler = (e) => { props.changeEditFlag(); }; return ( ); }; export default withRouter(adminHeader);