"use client"; import { useEffect } from "react"; /** * Last-resort boundary for errors thrown in the root layout itself. It replaces * the whole document, so it must render its own /
and can't rely on * the app shell or its CSS variables. */ export default function GlobalError({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { console.error(error); }, [error]); return (The hotel ran into an unexpected error. Please try again.