"use client"; // import { useEffect } from "react"; // import * as Sentry from "@sentry/nextjs"; // import { useRouter } from "next/navigation"; // services import { Button } from "@plane/ui"; // helpers // import { API_BASE_URL } from "@/helpers/common.helper"; // layouts import DefaultLayout from "@/layouts/default-layout"; // // import { AuthService } from "@/services/auth.service"; // layouts // ui // services // const authService = new AuthService(); // type props = { // error: Error & { digest?: string }; // }; // TODO: adding error sentry logging. // const CustomErrorComponent = ({ error }: props) => { const CustomErrorComponent = () => { // const router = useRouter(); // useEffect(() => { // Sentry.captureException(error); // }, [error]); const handleRefresh = () => { window.location.reload(); }; const handleSignOut = async () => { // await authService // .signOut(API_BASE_URL) // .catch(() => // setToast({ // type: TOAST_TYPE.ERROR, // title: "Error!", // message: "Failed to sign out. Please try again.", // }) // ) // .finally(() => router.push("/")); }; return (

Exception Detected!

We{"'"}re Sorry! An exception has been detected, and our engineering team has been notified. We apologize for any inconvenience this may have caused. Please reach out to our engineering team at{" "} support@plane.so {" "} or on our{" "} Discord {" "} server for further assistance.

); }; export default CustomErrorComponent;