define(["require", "exports", "react", "@fluentui/react/lib/ProgressIndicator"], function (require, exports, React, ProgressIndicator_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ProgressIndicatorBasicExample = void 0;
    var intervalDelay = 100;
    var intervalIncrement = 0.01;
    var ProgressIndicatorBasicExample = function () {
        var _a = React.useState(0), percentComplete = _a[0], setPercentComplete = _a[1];
        React.useEffect(function () {
            var id = setInterval(function () {
                setPercentComplete((intervalIncrement + percentComplete) % 1);
            }, intervalDelay);
            return function () {
                clearInterval(id);
            };
        });
        return (React.createElement(ProgressIndicator_1.ProgressIndicator, { label: "Example title", description: "Example description", percentComplete: percentComplete }));
    };
    exports.ProgressIndicatorBasicExample = ProgressIndicatorBasicExample;
});
//# sourceMappingURL=ProgressIndicator.Basic.Example.js.map