"use client" import * as React from "react" import { Button } from "@/components/ui/button" import { AlertTriangle } from "lucide-react" interface ErrorProps { error: Error & { digest?: string } reset: () => void } export default function Error({ error, reset }: ErrorProps) { React.useEffect(() => { // Log the error to an error reporting service console.error("Application error:", error) }, [error]) return (
{error.message || "An unexpected error occurred"}