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, Fragment as _Fragment } from "react/jsx-runtime";
import styled from "styled-components";
import { theme } from "../../../../css/globalStyle";
var Parent = styled.div.attrs({
    className: "f3 fw7 animate__animated animate__fadeIn faster"
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  z-index: 100;\n"], ["\n  z-index: 100;\n"])));
var SubContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  position: fixed;\n  bottom: 0px;\n  right: 0px;\n  width: 100vw;\n  height: 100vh;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  color: ", ";\n  background: #a4a4a461;\n"], ["\n  position: fixed;\n  bottom: 0px;\n  right: 0px;\n  width: 100vw;\n  height: 100vh;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  color: ", ";\n  background: #a4a4a461;\n"])), theme.color.grey[100]);
export var SubmittingContainer = function (_a) {
    var submitted = _a.submitted, loader = _a.loader, result = _a.result;
    return (_jsx(Parent, __assign({ id: "submitContainer" }, { children: submitted ? (_jsx(_Fragment, { children: result && _jsx(SubContainer, { children: result }) })) : (_jsx(_Fragment, { children: loader && _jsx(SubContainer, { children: loader }) })) })));
};
var templateObject_1, templateObject_2;
//# sourceMappingURL=index.js.map