"use client"; import dynamic from "next/dynamic"; import { useNodes } from "@/lib/useNodes"; import { useActiveCalls } from "@/lib/useCalls"; import { useActiveIncidents } from "@/lib/useIncidents"; // Leaflet is browser-only — must be dynamically imported with no SSR const MapView = dynamic(() => import("@/components/MapView"), { ssr: false }); export default function MapPage() { const { nodes, loading } = useNodes(); const activeCalls = useActiveCalls(); const incidents = useActiveIncidents(); return (

Map

Online Recording Unconfigured Offline Fire Police EMS Accident
{loading ? (
Loading map…
) : (
)}
); }