-
}
- aria-label="Zoom In"
- tooltip="Zoom In"
- onClick={() => zoomIn()}
- fontSize={20}
- />
+
+ {({ zoomIn, zoomOut, resetTransform, centerView }) => (
+ <>
+
+ }
+ aria-label="Zoom In"
+ tooltip="Zoom In"
+ onClick={() => zoomIn()}
+ fontSize={20}
+ />
- }
- aria-label="Zoom Out"
- tooltip="Zoom Out"
- onClick={() => zoomOut()}
- fontSize={20}
- />
+ }
+ aria-label="Zoom Out"
+ tooltip="Zoom Out"
+ onClick={() => zoomOut()}
+ fontSize={20}
+ />
- }
- aria-label="Rotate Left"
- tooltip="Rotate Left"
- onClick={rotateLeft}
- fontSize={20}
- />
+ }
+ aria-label="Rotate Left"
+ tooltip="Rotate Left"
+ onClick={rotateLeft}
+ fontSize={20}
+ />
- }
- aria-label="Rotate Right"
- tooltip="Rotate Right"
- onClick={rotateRight}
- fontSize={20}
- />
+ }
+ aria-label="Rotate Right"
+ tooltip="Rotate Right"
+ onClick={rotateRight}
+ fontSize={20}
+ />
- }
- aria-label="Flip Image"
- tooltip="Flip Image"
- onClick={flipImage}
- fontSize={20}
- />
+ }
+ aria-label="Flip Image"
+ tooltip="Flip Image"
+ onClick={flipImage}
+ fontSize={20}
+ />
- }
- aria-label="Reset"
- tooltip="Reset"
- onClick={() => {
- resetTransform();
- setRotation(0);
- setFlip(false);
- }}
- fontSize={20}
- />
-
+ }
+ aria-label="Reset"
+ tooltip="Reset"
+ onClick={() => {
+ resetTransform();
+ setRotation(0);
+ setFlip(false);
+ }}
+ fontSize={20}
+ />
+
-