"use client"; import { useEffect } from "react"; import { RotateCw } from "lucide-react"; import { Button, ButtonLink } from "@/components/ui/button"; import { PAGE_COLUMN } from "@/components/ui/map-hero"; interface RouteErrorProps { error: Error & { digest?: string }; retry: () => void; } // A render that throws anywhere below the root layout lands here, inside the app's // chrome, instead of replacing the whole window with Next's own error screen. `retry` // re-fetches and re-renders the segment, which is all a passing failure needs. export default function RouteError({ error, retry }: RouteErrorProps) { useEffect(() => { console.error(error); }, [error]); return (
Something went wrong showing this page.
Back to home
); }