"use client"; import { IconAlertTriangle, IconRefresh } from "@tabler/icons-react"; import Link from "next/link"; import { useEffect } from "react"; export default function PagesError({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { console.error("[pages error boundary]", error); }, [error]); return (
{/* Icon ring */}

Something went wrong

An unexpected error occurred while loading this page. You can try again or head back to the dashboard.

{error.digest && (

Error ID: {error.digest}

)}
Dashboard
); }