diff --git a/apps/web/pages/500.tsx b/apps/web/pages/500.tsx index 3fa4508a3b..47bb99684c 100644 --- a/apps/web/pages/500.tsx +++ b/apps/web/pages/500.tsx @@ -1,32 +1,48 @@ import Head from "next/head"; +import { useRouter } from "next/router"; import { APP_NAME, WEBSITE_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { Button } from "@calcom/ui"; +import { Button, Icon, showToast } from "@calcom/ui"; export default function Error500() { const { t } = useLocale(); + const router = useRouter(); return ( -
+
Something unexpected occurred | {APP_NAME} -
-

- 5 - { - // eslint-disable-next-line @next/next/no-img-element - 0 - } - 0 -

-

It's not you, it's us.

-

+

+

500

+

It's not you, it's us.

+

Something went wrong on our end. Get in touch with our support team, and we’ll get it fixed right away for you.

+ {router.query.error && ( +
+

+ Please provide the following text when contacting support to better help you: +

+
+              {router.query.error}
+              
+ +
+
+ )}