import React from 'react';
import Layout from '../layouts/Centered';
import Paper from '../components/Paper';
import Logo from '../components/Logo';
import CreateEvent from '../containers/CreateEvent';
import {useAuth} from 'strapi-react-context';
import {useHistory} from 'react-router-dom';
import {useTranslation} from 'react-i18next';
import GenericMenu from '../containers/GenericMenu';
const Menu = () => {
const history = useHistory();
const {t} = useTranslation();
const {token} = useAuth();
const goProfile = history.push.bind(undefined, '/profile');
const goDashboard = history.push.bind(undefined, '/dashboard');
const goLogin = history.push.bind(undefined, '/login');
const goRegister = history.push.bind(undefined, '/register');
const goAbout = () => (window.location.href = t('meta.about_href'));
return (