"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const core_1 = require("@material-ui/core");
function WxLoading({ loading, message }) {
    return (react_1.default.createElement(core_1.Backdrop, { style: { zIndex: 9999 }, open: loading },
        react_1.default.createElement(core_1.CircularProgress, { color: "primary" }),
        react_1.default.createElement(core_1.Box, { ml: 2 },
            react_1.default.createElement(core_1.Typography, { variant: "h3", color: "textPrimary" }, message))));
}
exports.default = WxLoading;
