PraxaLing / app /(app) /error.tsx
Reubencf's picture
feat: phrases page, level picker, furigana, HF inference fix, more scenarios
a0a94bd
Raw
History Blame Contribute Delete
522 Bytes
"use client";
export default function AppError({ error, reset }: { error: Error; reset: () => void }) {
return (
<section className="duo-card mx-auto max-w-md space-y-4 p-8 text-center">
<h1 className="text-2xl font-black text-[#3C3C3C]">Something went wrong</h1>
<p className="text-sm font-bold text-[#777777]">{error.message || "Please try again."}</p>
<button
onClick={reset}
className="btn-duo btn-duo-primary"
>
Try again
</button>
</section>
);
}