import React, {useEffect, 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"; import HttpService from "../../scripts/net/HttpService.js"; export default function MapControls({onFloorChange,mapName }) { const [currentFloor, setCurrentFloor] = useState(0); const [floors, setFloors] = useState([]); // Starting floor // Handle floor selection const handleFloorChange = (newFloor) => { setCurrentFloor(newFloor); if (onFloorChange) { onFloorChange(newFloor); } }; return (