import { ReactNode } from 'react' import { ErrorBoundary as ErrorBoundaryRaw } from 'react-error-boundary' function ErrorFallback({ error, resetErrorBoundary, }: { error: Error resetErrorBoundary: () => void }) { return (

Something went wrong:

{error.message}
) } const ErrorBoundary = ({ children }: { children: ReactNode }) => { return ( { // reset the state of your app so the error doesn't happen again }} > {children} ) } export default ErrorBoundary