import { CheckIcon } from "@heroicons/react/outline"; import { GetServerSidePropsContext } from "next"; import Link from "next/link"; import { useRouter } from "next/router"; import { useEffect } from "react"; import { useLocale } from "@lib/hooks/useLocale"; import { inferSSRProps } from "@lib/types/inferSSRProps"; import AuthContainer from "@components/ui/AuthContainer"; import Button from "@components/ui/Button"; import { ssrInit } from "@server/lib/ssr"; type Props = inferSSRProps; export default function Logout(props: Props) { const router = useRouter(); useEffect(() => { if (props.query?.survey === "true") { router.push("https://cal.com/cancellation"); } }, []); const { t } = useLocale(); return (

{t("hope_to_see_you_soon")}

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