'use client' import { useEffect } from "react" import Image from "next/image" import Link from "next/link" import { Button } from "@/components/ui/button" export default function Error({ error, reset, }: { error: Error reset: () => void }) { useEffect(() => { console.log({ name: error.name, cause: error.cause, message: error.message, stack: error.stack }) }, [error]) return ( <>
ilustrations

Oopps.. something went wrong!

{error.message || 'Sorry, system error has occurred'}
) }