"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
require("./../styles/errorMessage.sass");
require("./../styles/errorMessageDefault.sass");
var getStyleForTopLevelComponent_1 = require("../../core/utils/getStyleForTopLevelComponent");
exports.ErrorMessage = function (_a) {
    var _b = _a.title, title = _b === void 0 ? 'Something went wrong' : _b, _c = _a.message, message = _c === void 0 ? 'Please try again later.' : _c, children = _a.children, className = _a.className;
    return (react_1.default.createElement("div", { className: "universal-login-error-message" },
        react_1.default.createElement("div", { className: getStyleForTopLevelComponent_1.getStyleForTopLevelComponent(className) },
            react_1.default.createElement("h1", { className: "error-message-title" }, title),
            react_1.default.createElement("div", { className: "error-message-content" },
                react_1.default.createElement("div", { className: "error-message-section" },
                    react_1.default.createElement("p", { className: "error-message-text" }, message),
                    children)))));
};
//# sourceMappingURL=ErrorMessage.js.map