SPB Git forge

spb/fetcha

Public
11commits 1branches 0releases
1.5 MBsize
maindefault branch
16 days agolast push
TypeScript 97.5% SQL 1.4% Python 0.8%
748 B · 14 lines tsx
Raw Blame History
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