import { GetStaticPropsContext } from "next"; import Link from "next/link"; import { useRouter } from "next/router"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import Button from "@calcom/ui/Button"; import { Icon } from "@calcom/ui/Icon"; import AuthContainer from "@components/ui/AuthContainer"; import { ssgInit } from "@server/lib/ssg"; export default function Error() { const { t } = useLocale(); const router = useRouter(); const { error } = router.query; return (

{t("error_during_login")}

); } export const getStaticProps = async (context: GetStaticPropsContext) => { const ssr = await ssgInit(context); return { props: { trpcState: ssr.dehydrate(), }, }; };