Files
ai-learning-platform/frontend/src/app/error.tsx
T

18 lines
557 B
TypeScript
Raw 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';
export default function ErrorPage({ error, reset }: { error: Error; reset: () => void }) {
console.error(error);
return (
<div className="flex flex-col items-center justify-center min-h-[60vh] gap-4">
<h1 className="text-4xl font-bold text-foreground"></h1>
<p className="text-muted-foreground"></p>
<button
onClick={() => reset()}
className="text-brand-600 hover:text-brand-700 font-medium"
>
</button>
</div>
);
}