import { useState } from 'react'; import { useMapEvents } from 'react-leaflet'; import { alpha, Box } from '@mui/material'; import defaultIcon from './defaultIcon'; const FloatingMarker = () => { const [dragging, setDragging] = useState(false); useMapEvents({ movestart: () => { setDragging(true); }, moveend: () => { setDragging(false); } }); return (