next-url-shortener/src/app/global-error.tsx
2025-03-06 01:33:58 -08:00

21 lines
445 B
TypeScript

"use client";
import CardGrid from "@/components/card-grid";
import { Card, CardHeader, CardTitle } from "@/components/ui/card";
export default function GlobalError({
error,
}: {
error: Error & { digest?: string };
}) {
return (
<CardGrid maxCols={1}>
<Card>
<CardHeader>
<CardTitle className="text-center text-2xl text-red-400">
Error + {String(error)}
</CardTitle>
</CardHeader>
</Card>
</CardGrid>
);
}