import { MAX_MAP_ZOOM, MIN_MAP_ZOOM, clampMapZoom } from "../../lib/locationMapUtils"; export default function LocationMapToolbar({ mode, editorTool, hasAnyMap, canManage, saving, zoom, setZoom, onFit, onView, onEdit, onPanMode, onEditObjects, }) { const isAtMinZoom = zoom <= MIN_MAP_ZOOM; const isAtMaxZoom = zoom >= MAX_MAP_ZOOM; return (
{canManage ? ( ) : null}
{mode === "edit" && canManage ? (
) : null}
{Math.round(zoom * 100)}%
); }