import { Button, Select } from 'antd' import Link from 'next/link' import { useRouter } from 'next/router' import React from 'react' import GitHubButton from 'react-github-button' import { useTranslation } from 'react-i18next' import { useSettingsQuery } 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 roles: string[] } } const AuthFooterInner: React.FC = (props) => { const { t, i18n } = useTranslation() const router = useRouter() const { data, loading } = useSettingsQuery() const logout = () => { clearAuth() router.reload() } return ( ) } export const AuthFooter = withAuth(AuthFooterInner, [], true)