import {UpOutlined} from '@ant-design/icons/lib' import {Button, Menu, Select} from 'antd' import Link from 'next/link' import {useRouter} from 'next/router' import React from 'react' import {useTranslation} from 'react-i18next' import {languages} from '../../i18n' import {clearAuth, withAuth} from '../with.auth' interface Props { me?: { id: string username: string } } const AuthFooterInner: React.FC = props => { const { t, i18n } = useTranslation() const router = useRouter() const logout = () => { clearAuth() router.reload() } return ( ) } export const AuthFooter = withAuth(AuthFooterInner)