import { BookOpenIcon, CheckIcon, CodeIcon, DocumentTextIcon } from "@heroicons/react/outline"; import { ChevronRightIcon } from "@heroicons/react/solid"; import Link from "next/link"; import { useRouter } from "next/router"; import React from "react"; import { useLocale } from "@lib/hooks/useLocale"; import { HeadSeo } from "@components/seo/head-seo"; export default function Custom404() { const { t } = useLocale(); const router = useRouter(); const username = router.asPath.replace("%20", "-"); const links = [ { title: t("documentation"), description: t("documentation_description"), icon: DocumentTextIcon, href: "https://docs.cal.com", }, { title: t("api_reference"), description: t("api_reference_description"), icon: CodeIcon, href: "https://api.docs.cal.com", }, { title: t("blog"), description: t("blog_description"), icon: BookOpenIcon, href: "https://cal.com/blog", }, ]; const isEventType404 = router.asPath.includes("/event-types"); return ( <>

404 error

{t("page_doesnt_exist")}

{isEventType404 ? ( {t("check_spelling_mistakes_or_go_back")} ) : ( {t("the_username")} cal.com{username}{" "} {t("is_still_available")} {t("register_now")}. )}

{t("popular_pages")}

{!isEventType404 && ( )}
{t("or_go_back_home")}
); }