SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
584 B · 18 lines tsx
Raw Blame History
1'use client';23import { EmptyState } from '@/components/ui/primitives';45export default function ErrorPage({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {6  return (7    <EmptyState8      title="Something went wrong"9      description={error.digest ? `Reference ${error.digest}` : 'An unexpected error occurred while rendering this page.'}10      action={11        <button type="button" onClick={reset} className="rounded-md border border-border px-3 py-1.5 text-xs font-medium hover:bg-inset">12          Try again13        </button>14      }15    />16  );17}18