"use client"; import { AnalyticsPanel } from "@/components/map/analytics-panel"; import { ChatPanel } from "@/components/map/chat-panel"; import { FiltersPanel } from "@/components/map/filters-panel"; import { PropertyInfoPanel } from "@/components/map/property-info-panel"; import MapWithSearch from "@/components/map/map-with-search"; import { TopNavigation } from "@/components/navigation/top-navigation"; import { Button } from "@/components/ui/button"; import { BarChart2, Filter, MapPin, MessageCircle } from "lucide-react"; import { useRef, useState } from "react"; import Draggable from "react-draggable"; export default function MapsPage() { const [showFilters, setShowFilters] = useState(false); const [showAnalytics, setShowAnalytics] = useState(false); const [showChat, setShowChat] = useState(false); const [showPropertyInfo, setShowPropertyInfo] = useState(false); const analyticsRef = useRef(null); const filtersRef = useRef(null); const chatRef = useRef(null); const propertyInfoRef = useRef(null); const handlePropertyClick = () => { setShowPropertyInfo(true); setShowFilters(false); setShowChat(false); }; return (
{/* Sample Property Markers */}
Available
Pending
Sold
{/* Top Navigation Bar */} {/* Map Overlay Controls */}
{/* Property Info Panel */} {showPropertyInfo && ( }>
)} {/* Analytics Panel */} {showAnalytics && ( }>
)} {showFilters && ( }>
)} {showChat && ( }>
)} {/* Map Legend */}
Property Status
Available
Pending
Sold
); }