var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import PropTypes from 'prop-types';
var LoadingRingSvg = function (_a) {
    var className = _a.className, isAnimated = _a.isAnimated, height = _a.height, width = _a.width, otherProps = __rest(_a, ["className", "isAnimated", "height", "width"]);
    return React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 " + width + " " + height, className: "uil-ring-alt " + className, preserveAspectRatio: "xMidYMid" }, otherProps),
        React.createElement("path", { fill: "none", d: "M0 0h100v100H0z", className: "bk" }),
        React.createElement("circle", { cx: width / 2, cy: height / 2, r: ((height / 2) + (width / 2)) / 2 - 10, fill: "none", stroke: "#131315", strokeLinecap: "round", strokeWidth: "10" }),
        React.createElement("circle", { cx: width / 2, cy: height / 2, r: ((height / 2) + (width / 2)) / 2 - 10, fill: "none", stroke: "#ec2127", strokeLinecap: "round", strokeWidth: "6" }, isAnimated &&
            React.createElement(React.Fragment, null,
                React.createElement("animate", { attributeName: "stroke-dashoffset", dur: "2s", from: "0", to: "502", repeatCount: "indefinite" }),
                React.createElement("animate", { attributeName: "stroke-dasharray", dur: "2s", repeatCount: "indefinite", values: "150.6 100.4;1 250;150.6 100.4" }))));
};
LoadingRingSvg.propTypes = {
    className: PropTypes.string,
    isAnimated: PropTypes.bool,
    height: PropTypes.number.isRequired,
    width: PropTypes.number.isRequired,
};
LoadingRingSvg.defaultProps = {
    className: '',
    isAnimated: true,
    height: 100,
    width: 100,
};
export default LoadingRingSvg;
//# sourceMappingURL=LoadingRingSvg.js.map