'use client'; import React, { useEffect, useState } from 'react'; import { MapContainer, TileLayer, Marker, Popup, CircleMarker } from 'react-leaflet'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; interface Burrow { id: string; gps_lat: number; gps_lng: number; status: string; location_description: string; } // Fix default marker icons in Next.js const activeIcon = new L.DivIcon({ className: '', html: '
', iconSize: [14, 14], iconAnchor: [7, 7], }); const inactiveIcon = new L.DivIcon({ className: '', html: '', iconSize: [12, 12], iconAnchor: [6, 6], }); export default function BurrowMap() { const [burrows, setBurrows] = useState