Version 3 of the kit: - Radix UI replaced with Base UI (using the Shadcn UI patterns) - next-intl replaces react-i18next - enhanceAction deprecated; usage moved to next-safe-action - main layout now wrapped with [locale] path segment - Teams only mode - Layout updates - Zod v4 - Next.js 16.2 - Typescript 6 - All other dependencies updated - Removed deprecated Edge CSRF - Dynamic Github Action runner
36 lines
818 B
TypeScript
36 lines
818 B
TypeScript
'use client';
|
|
|
|
import { useCaptureException } from '@kit/monitoring/hooks';
|
|
import { useUser } from '@kit/supabase/hooks/use-user';
|
|
|
|
import { SiteHeader } from '~/(marketing)/_components/site-header';
|
|
import { ErrorPageContent } from '~/components/error-page-content';
|
|
|
|
const ErrorPage = ({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string };
|
|
reset: () => void;
|
|
}) => {
|
|
useCaptureException(error);
|
|
|
|
const user = useUser();
|
|
|
|
return (
|
|
<div className={'flex h-screen flex-1 flex-col'}>
|
|
<SiteHeader user={user.data} />
|
|
|
|
<ErrorPageContent
|
|
statusCode={'common.errorPageHeading'}
|
|
heading={'common.genericError'}
|
|
subtitle={'common.genericErrorSubHeading'}
|
|
backLabel={'common.goBack'}
|
|
reset={reset}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ErrorPage;
|