"use client"; import { useEffect } from "react"; import Link from "next/link"; import { AlertTriangle } from "lucide-react"; import { Button } from "@/components/ui/button"; /* * Route-segment error boundary. Next 16 App Router convention: this file * catches render-time errors thrown below the root layout. `reset` clears * the error and re-renders the segment; we keep the user's nav in place * (no AppShell here — the shell re-renders from the layout above us). */ export default function ErrorPage({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { console.error("Route error:", error); }, [error]); return (
); }