import { Button } from "@follow/components/ui/button/index.js" import type { FC } from "react" import { attachOpenInEditor } from "~/lib/dev" import type { AppErrorFallbackProps } from "../common/AppErrorBoundary" import { FeedbackIssue } from "../common/ErrorElement" import { parseError, useResetErrorWhenRouteChange } from "./helper" const PageErrorFallback: FC = (props) => { const { message, stack } = parseError(props.error) useResetErrorWhenRouteChange(props.resetError) return (
{message}
{import.meta.env.DEV && stack ? (
            {attachOpenInEditor(stack)}
          
) : null}

{APP_NAME} has a temporary problem, click the button below to try reloading the app or another solution?

) } export default PageErrorFallback