pre-bemis

This commit is contained in:
Marcelo
2026-04-22 05:04:19 +00:00
parent ac1a7900c8
commit 80d27f83b6
91 changed files with 11769 additions and 820 deletions

31
app/(app)/error.tsx Normal file
View File

@@ -0,0 +1,31 @@
"use client";
import { useEffect } from "react";
export default function AppError({
error,
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
useEffect(() => {
console.error("[App Error]", error);
}, [error]);
return (
<div className="flex min-h-[50vh] flex-col items-center justify-center gap-4 p-6">
<h2 className="text-lg font-semibold text-white">Something went wrong</h2>
<p className="max-w-md text-center text-sm text-zinc-400">
An error occurred while loading this page. Please try again.
</p>
<button
type="button"
onClick={() => reset()}
className="rounded-xl border border-white/10 bg-white/5 px-4 py-2 text-sm text-white hover:bg-white/10"
>
Try again
</button>
</div>
);
}