var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
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);
};
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { CircleSpinner } from "react-spinners-kit";
import styled from "styled-components";
import { theme } from "../../../../css/globalStyle";
// By default, the Parent takes up the whole space of the SubmittingContainer
// parent. This is so they can't click buttons underneath this Loader.
var Parent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 100%;\n  background: ", ";\n  position: absolute;\n  top: 0px;\n  opacity: 0.7;\n"], ["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: 100%;\n  background: ", ";\n  position: absolute;\n  top: 0px;\n  opacity: 0.7;\n"])), theme.color.grey[900]);
var SubmittingText = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  margin-right: 10px;\n"], ["\n  margin-right: 10px;\n"])));
export var SubmittingLoader = function (_a) {
    var submittingText = _a.submittingText, additionalStyles = _a.additionalStyles;
    return (_jsxs(Parent, __assign({ style: additionalStyles }, { children: [_jsx(SubmittingText, { children: submittingText }), _jsx(CircleSpinner, { size: 20, color: theme.color.grey[100] })] })));
};
var templateObject_1, templateObject_2;
//# sourceMappingURL=index.js.map