import { XIcon } from "@heroicons/react/outline"; import { GetServerSidePropsContext } from "next"; import Link from "next/link"; import { useRouter } from "next/router"; import Button from "@calcom/ui/Button"; import { useLocale } from "@lib/hooks/useLocale"; import AuthContainer from "@components/ui/AuthContainer"; import { ssrInit } from "@server/lib/ssr"; export default function Error() { const { t } = useLocale(); const router = useRouter(); const { error } = router.query; return (

{t("error_during_login")}

); } export async function getServerSideProps(context: GetServerSidePropsContext) { const ssr = await ssrInit(context); return { props: { trpcState: ssr.dehydrate(), }, }; }