"use client" import dynamic from "next/dynamic" interface WaterMapProps { facilities?: Array<{ id: string name: string type: "water_source" | "plant" | "pump" | "pipeline" | "user" position: [number, number] status: "normal" | "warning" | "alarm" data?: any }> alarms?: Array<{ id: string position: [number, number] level: "high" | "medium" | "low" message: string }> } // 使用动态导入避免SSR问题 const MapComponent = dynamic(() => import("./map-component"), { ssr: false, loading: () => (