"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlertMessage = void 0;
var React = require("react");
var FontAwesome = require("react-fontawesome");
var flex_1 = require("../flex");
require("./AlertMessage.less");
function cssClass(element) {
    return "AlertMessage--" + element;
}
exports.AlertMessage = function (_a) {
    var icon = _a.icon, messageText = _a.messageText;
    return (React.createElement(flex_1.FlexBox, { className: cssClass("Container") },
        React.createElement(FontAwesome, { "aria-hidden": "true", name: icon, size: "lg" }),
        React.createElement(flex_1.FlexItem, { className: cssClass("Message"), grow: true }, messageText)));
};
