import React from 'react'; import { useMap } from 'react-leaflet'; import { useMapActions } from '@/contexts/MapContexts.tsx'; import { RotateCw, ZoomIn, ZoomOut } from 'lucide-react'; import Button from '@/components/ui/Button.tsx'; // Bugulma center coordinates [lat, lng] for Leaflet const BUGULMA_CENTER: [number, number] = [54.5384152, 52.7955953]; const DEFAULT_ZOOM = 12; const MapControls: React.FC = () => { const map = useMap(); const { resetView } = useMapActions(); const handleZoomIn = () => { map.zoomIn(); }; const handleZoomOut = () => { map.zoomOut(); }; const handleReset = () => { map.setView(BUGULMA_CENTER, DEFAULT_ZOOM, { animate: true }); resetView(); }; return (