"use client" import { useEffect } from "react" import Link from "next/link" import { Button } from "@/components/ui/button" import { Icons } from "@/components/icons" export default function Error({ error, reset, }: { error: Error & { digest?: string } reset: () => void }) { useEffect(() => { // Log the error to an error reporting service console.error(error) }, [error]) return (
We're sorry, but we encountered an unexpected error. Our team has been notified and is working to fix the issue.