/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { useTheme } from "next-themes"; // plane imports import { Button } from "@plane/propel/button"; // assets import maintenanceModeDarkModeImage from "@/app/assets/instance/maintenance-mode-dark.svg?url"; import maintenanceModeLightModeImage from "@/app/assets/instance/maintenance-mode-light.svg?url"; // layouts import DefaultLayout from "@/layouts/default-layout"; const linkMap = [ { key: "mail_to", label: "Contact Support", value: "mailto:support@plane.so", }, { key: "status", label: "Status Page", value: "https://status.plane.so/", }, { key: "twitter_handle", label: "@planepowers", value: "https://x.com/planepowers", }, ]; // Production Error Component interface ProdErrorComponentProps { onGoHome: () => void; } export function ProdErrorComponent({ onGoHome }: ProdErrorComponentProps) { // hooks const { resolvedTheme } = useTheme(); // derived values const maintenanceModeImage = resolvedTheme === "dark" ? maintenanceModeDarkModeImage : maintenanceModeLightModeImage; return (
ProjectSettingImg

🚧 Looks like something went wrong!

We track these errors automatically and working on getting things back up and running. If the problem persists feel free to contact us. In the meantime, try refreshing.
{linkMap.map((link) => (
{link.label}
))}
); }