import { ErrorFallbackProps, ErrorComponent, ErrorBoundary, AppProps } from "@blitzjs/next" import { AuthenticationError, AuthorizationError } from "blitz" import React from "react" import { withBlitz } from "app/blitz-client" import "app/core/global.css" import "app/core/variables.css" import "app/core/variables.css" import "app/core/lightTheme.css" import "app/core/darkTheme.css" import "app/i18n" function RootErrorFallback({ error }: ErrorFallbackProps) { if (error instanceof AuthenticationError) { return
Error: You are not authenticated
} else if (error instanceof AuthorizationError) { return ( ) } else { return ( ) } } function MyApp({ Component, pageProps }: AppProps) { return ( ) } export default withBlitz(MyApp)