Files
NianAIGC/app/billing/error.tsx

21 lines
732 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import { useEffect } from "react";
export default function BillingError({ reset }: { error: Error & { digest?: string }; reset: () => void }) {
useEffect(() => {
// Keep the error boundary intentionally quiet in production; the API/log layer records the server cause.
}, []);
return (
<main className="billing-route-error">
<div className="billing-route-error-card">
<span className="billing-route-error-kicker"></span>
<h1></h1>
<p> Go API </p>
<button type="button" onClick={() => reset()}></button>
</div>
</main>
);
}