import { useQuery } from '@apollo/react-hooks' import { Button, Select } from 'antd' import Link from 'next/link' import { useRouter } from 'next/router' import React from 'react' import { useTranslation } from 'react-i18next' import { SETTINGS_QUERY, SettingsQueryData } from '../../graphql/query/settings.query' import { languages } from '../../i18n' import { clearAuth, withAuth } from '../with.auth' import scss from './footer.module.scss' interface Props { me?: { id: string username: string } } const AuthFooterInner: React.FC = (props) => { const { t, i18n } = useTranslation() const router = useRouter() const { data } = useQuery(SETTINGS_QUERY) const logout = () => { clearAuth() router.reload() } return ( ) } export const AuthFooter = withAuth(AuthFooterInner)