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 styled, { keyframes } from "styled-components";
import Logo from "./Logo";
var LoadingDiv = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  width: 100vw;\n  height: 100vh;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n"], ["\n  width: 100vw;\n  height: 100vh;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n"])));
var fade = keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  from {\n    opacity: 0.5;\n  }\n  to {\n    opacity: 1;\n  }\n"], ["\n  from {\n    opacity: 0.5;\n  }\n  to {\n    opacity: 1;\n  }\n"])));
var LogoDiv = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  width: 50px;\n  animation: ", " 0.9s linear infinite;\n"], ["\n  width: 50px;\n  animation: ", " 0.9s linear infinite;\n"])), fade);
var TextDiv = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n  margin-top: 20px;\n"], ["\n  margin-top: 20px;\n"])));
export default (function (_a) {
    var width = _a.width, height = _a.height, text = _a.text, logoWidth = _a.logoWidth, logoColor = _a.logoColor;
    return (_jsxs(LoadingDiv, __assign({ style: { width: width, height: height } }, { children: [_jsx(LogoDiv, __assign({ style: { width: logoWidth } }, { children: _jsx(Logo, { fill: logoColor }) })), text ? _jsx(TextDiv, { children: text }) : null] })));
});
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
//# sourceMappingURL=Loader.js.map