"use client"; import { useState } from "react"; import { useTheme } from "next-themes"; import { MapContainer, TileLayer, Popup, Circle, CircleMarker, Polygon, Polyline, Rectangle, } from "react-leaflet"; const polyline: [number, number][] = [ [51.505, -0.09], [51.51, -0.1], [51.51, -0.12], ]; const multiPolyline: [number, number][][] = [ [ [51.5, -0.1], [51.5, -0.12], [51.52, -0.12], ], [ [51.5, -0.05], [51.5, -0.06], [51.52, -0.06], ], ]; const polygon: [number, number][] = [ [51.515, -0.09], [51.52, -0.1], [51.52, -0.12], ]; const multiPolygon: [number, number][][] = [ [ [51.51, -0.12], [51.51, -0.13], [51.53, -0.13], ], [ [51.51, -0.05], [51.51, -0.07], [51.53, -0.07], ], ]; const rectangle: [number, number][] = [ [51.49, -0.08], [51.5, -0.06], ]; import { colors } from "@/lib/colors"; const VectorLayersMap = ({ height = 350 }) => { const { theme: mode } = useTheme(); const [state, setState] = useState({ lat: 51.505, lng: -0.09, zoom: 13, }); const position: [number, number] = [state.lat, state.lng]; return ( Popup in CircleMarker ); }; export default VectorLayersMap;