diff --git a/frontend/app/(sidebar)/maps/page.tsx b/frontend/app/(sidebar)/maps/page.tsx index ceae4d9..d14f3ce 100644 --- a/frontend/app/(sidebar)/maps/page.tsx +++ b/frontend/app/(sidebar)/maps/page.tsx @@ -3,26 +3,12 @@ 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 { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; -import { - BarChart2, - Bath, - BedDouble, - Building, - Droplets, - Filter, - Home, - MapPin, - MessageCircle, - Star, - Sun, - Wind, - X, -} from "lucide-react"; -import Link from "next/link"; +import { BarChart2, Filter, MapPin, MessageCircle } from "lucide-react"; import { useRef, useState } from "react"; import Draggable from "react-draggable"; @@ -34,6 +20,7 @@ export default function MapsPage() { const analyticsRef = useRef(null); const filtersRef = useRef(null); const chatRef = useRef(null); + const propertyInfoRef = useRef(null); const handlePropertyClick = () => { setShowPropertyInfo(true); @@ -146,118 +133,11 @@ export default function MapsPage() { {/* Property Info Panel */} {showPropertyInfo && ( -
-
-
- - Property Details -
-
- -
+ }> +
+
-
-
- Property -
- Condominium - - Premium - -
-
- -

Modern Condominium

-
- - Sukhumvit, Bangkok -
- -
-
- - 3 Beds -
-
- - 2 Baths -
-
- - 150 m² -
-
- -
฿15,000,000
- -
-
-

- Environmental Factors -

-
-
- - Flood Risk - - Moderate - -
-
- - Air Quality - Poor -
-
- - Noise - Low -
-
-
- -
-

Nearby Facilities

-
-
- BTS Phrom Phong - 300m -
-
- EmQuartier Mall - 500m -
-
- Benchasiri Park - 700m -
-
-
- -
- - - - - - -
-
-
-
+ )} {/* Analytics Panel */} diff --git a/frontend/components/map/property-info-panel.tsx b/frontend/components/map/property-info-panel.tsx new file mode 100644 index 0000000..a910914 --- /dev/null +++ b/frontend/components/map/property-info-panel.tsx @@ -0,0 +1,134 @@ +import { + Bath, + BedDouble, + Building, + Droplets, + Home, + Link, + MapPin, + Star, + Sun, + Wind, + X, +} from "lucide-react"; +import { Badge } from "../ui/badge"; +import { Button } from "../ui/button"; + +export function PropertyInfoPanel({ + setShowPropertyInfo, +}: { + setShowPropertyInfo: (show: boolean) => void; +}) { + return ( +
+
+
+
+ + Property Details +
+
+ +
+
+
+
+
+ Property +
+ Condominium + + Premium + +
+
+ +

Modern Condominium

+
+ + Sukhumvit, Bangkok +
+ +
+
+ + 3 Beds +
+
+ + 2 Baths +
+
+ + 150 m² +
+
+ +
฿15,000,000
+ +
+
+

Environmental Factors

+
+
+ + Flood Risk + Moderate +
+
+ + Air Quality + Poor +
+
+ + Noise + Low +
+
+
+ +
+

Nearby Facilities

+
+
+ BTS Phrom Phong + 300m +
+
+ EmQuartier Mall + 500m +
+
+ Benchasiri Park + 700m +
+
+
+ +
+ + + + + + +
+
+
+
+ ); +}