"use client"; // import { useEffect } from "react"; // import * as Sentry from "@sentry/nextjs"; // 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 = useAppRouter(); // 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 (

Yikes! That doesn{"'"}t look good.

That crashed Plane, pun intended. No worries, though. Our engineers have been notified. If you have more details, please write to{" "} support@plane.so {" "} or on our{" "} Discord .

); }; export default CustomErrorComponent;