(amount: number)
| 109 | * Adjust zoom level in the modal |
| 110 | */ |
| 111 | const adjustZoom = (amount: number) => { |
| 112 | setZoomLevel((prev) => { |
| 113 | const newZoom = prev + amount |
| 114 | return Math.max(MIN_ZOOM, Math.min(MAX_ZOOM, newZoom)) |
| 115 | }) |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Handle wheel event for zooming with scroll wheel |
no outgoing calls
no test coverage detected