SPB Git

spb/fetcha

Public
748 B · 14 lines tsx
1"use client";2import { Button } from "@/components/ui/button";34export default function GlobalError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {5  return (6    <div className="flex flex-1 flex-col items-center justify-center px-6 py-24 text-center">7      <p className="font-mono text-[12px] uppercase tracking-widest text-fg-subtle">INTERNAL_ERROR</p>8      <h1 className="mt-3 text-2xl font-semibold tracking-tight">Something went wrong.</h1>9      <p className="mt-2 max-w-sm text-[14px] text-fg-muted">An unexpected error occurred. {error.digest ? <>Reference <code className="font-mono">{error.digest}</code>.</> : null}</p>10      <Button className="mt-8" onClick={reset}>Try again</Button>11    </div>12  );13}14
Files · 6b215c2d5f54167737c2d57307f22c84bc934434
Menu

Theme