import React, { useContext } from "react"; import { Group, Rect } from "react-konva"; import MapInteractionContext from "../../contexts/MapInteractionContext"; function MapNote({ note, map }) { const { mapWidth, mapHeight } = useContext(MapInteractionContext); const noteWidth = map && (mapWidth / map.grid.size.x) * note.size; const noteHeight = map && (mapHeight / map.grid.size.y) * note.size; return ( ); } export default MapNote;