"use client" import { useEffect } from "react" import { Button } from "@/components/ui/button" import { BrainCircuit, RefreshCw, Mail } from "lucide-react" export default function GlobalError({ error, reset, }: { error: Error & { digest?: string } reset: () => void }) { useEffect(() => { // Log to console in dev; production would send to Sentry console.error(error) }, [error]) return (

Something went wrong

An unexpected error occurred. Your training sessions are saved — nothing was lost.

{error.digest && (

Error ID: {error.digest}

)}
) }