import { LOCAL_STORAGE_KEYS } from 'common' import { NextPage } from 'next' import { useTheme } from 'next-themes' import Image from 'next/legacy/image' import Link from 'next/link' import { useRouter } from 'next/router' import { Button } from 'ui' import { SupportLink } from '@/components/interfaces/Support/SupportLink' import { useLocalStorageQuery } from '@/hooks/misc/useLocalStorage' import { useSignOut } from '@/lib/auth' const Error500: NextPage = () => { const router = useRouter() const signOut = useSignOut() const { resolvedTheme } = useTheme() const [lastVisitedOrganization] = useLocalStorageQuery( LOCAL_STORAGE_KEYS.LAST_VISITED_ORGANIZATION, '' ) const onClickLogout = async () => { await signOut() await router.push('/sign-in') router.reload() } return (
Sorry about that, please try again later or feel free to reach out to us if the problem persists.