import React from 'react';
import './../styles/errorMessage.sass';
import './../styles/errorMessageDefault.sass';
import { getStyleForTopLevelComponent } from '../../core/utils/getStyleForTopLevelComponent';
export var 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.createElement("div", { className: "universal-login-error-message" },
        React.createElement("div", { className: getStyleForTopLevelComponent(className) },
            React.createElement("h1", { className: "error-message-title" }, title),
            React.createElement("div", { className: "error-message-content" },
                React.createElement("div", { className: "error-message-section" },
                    React.createElement("p", { className: "error-message-text" }, message),
                    children)))));
};
//# sourceMappingURL=ErrorMessage.js.map