import React, { useState } from "react"; import styles from "./MapControls.module.css"; import plusIcon from "../../assets/plus_icon.png"; import minusIcon from "../../assets/minus_icon.png"; import floorIcon from "../../assets/floor_icon.png"; export default function MapControls({ onZoomIn, onZoomOut, onFloorChange }) { const [currentFloor, setCurrentFloor] = useState(1); // Starting floor // Handle floor selection const handleFloorChange = (newFloor) => { setCurrentFloor(newFloor); if (onFloorChange) { onFloorChange(newFloor); } }; return (