mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
20 lines
483 B
TypeScript
20 lines
483 B
TypeScript
"use client";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
export default function Error({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string };
|
|
reset: () => void;
|
|
}) {
|
|
return (
|
|
<div className="flex min-h-screen flex-col items-center justify-center gap-4">
|
|
<h1 className="text-2xl font-bold">Something went wrong</h1>
|
|
<p className="text-sm text-muted-foreground">{error.message}</p>
|
|
<Button onClick={reset}>Try again</Button>
|
|
</div>
|
|
);
|
|
}
|