18 lines
380 B
TypeScript
18 lines
380 B
TypeScript
"use client";
|
|
import React, { useEffect } from "react";
|
|
import { ServerErrorPage } from "../../components/ErrorPages";
|
|
|
|
export default function B2BErrorBoundary({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string };
|
|
reset: () => void;
|
|
}) {
|
|
useEffect(() => {
|
|
console.error("B2B Route Error:", error);
|
|
}, [error]);
|
|
|
|
return <ServerErrorPage onRetry={reset} />;
|
|
}
|