({
onZoomIn,
onZoomOut,
}: {
onZoomIn: () => void;
onZoomOut: () => void;
})
| 531 | } |
| 532 | |
| 533 | function MapZoomControls({ |
| 534 | onZoomIn, |
| 535 | onZoomOut, |
| 536 | }: { |
| 537 | onZoomIn: () => void; |
| 538 | onZoomOut: () => void; |
| 539 | }) { |
| 540 | return ( |
| 541 | <div className="mapZoomControls" aria-label="地图缩放"> |
| 542 | <button type="button" onClick={onZoomIn} title="放大地图"> |
| 543 | <Plus size={18} /> |
| 544 | </button> |
| 545 | <button type="button" onClick={onZoomOut} title="缩小地图"> |
| 546 | <Minus size={18} /> |
| 547 | </button> |
| 548 | </div> |
| 549 | ); |
| 550 | } |
nothing calls this directly
no outgoing calls
no test coverage detected