import { CheckIcon } from "@heroicons/react/outline"; import { ArrowRightIcon } from "@heroicons/react/solid"; import { useSession } from "next-auth/react"; import { useRouter } from "next/router"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import Button from "@calcom/ui/Button"; import { Dialog, DialogContent, DialogFooter, DialogHeader } from "@calcom/ui/Dialog"; import { HeadSeo } from "@components/seo/head-seo"; export default function CancelSuccess() { const { t } = useLocale(); // Get router variables const router = useRouter(); const { title, name, eventPage } = router.query; const { data: session, status } = useSession(); const loading = status === "loading"; return (