'use client'; import { useEffect } from 'react'; export default function Error({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { // Log the error to your error reporting service console.error(error); }, [error]); return (

Something went wrong!

); }