'use strict';

var React = require('react');
var Controlled = require('./Controlled.js');

function Uncontrolled({ onZoomChange, ...props }) {
    const [isZoomed, setIsZoomed] = React.useState(false);
    const handleZoomChange = React.useCallback((value, { event }) => {
        setIsZoomed(value);
        onZoomChange?.(value, { event });
    }, [onZoomChange]);
    return (React.createElement(Controlled.Controlled, { ...props, isZoomed: isZoomed, onZoomChange: handleZoomChange }));
}

exports.Uncontrolled = Uncontrolled;
