"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InlineMessageIcon = InlineMessageIcon;
const react_1 = __importDefault(require("react"));
const aksel_icons_1 = require("@navikt/aksel-icons");
const STATUS_ICONS = {
    info: aksel_icons_1.InformationSquareFillIcon,
    success: aksel_icons_1.CheckmarkCircleFillIcon,
    warning: aksel_icons_1.ExclamationmarkTriangleFillIcon,
    error: aksel_icons_1.XMarkOctagonFillIcon,
};
function InlineMessageIcon({ status, }) {
    if (!(status in STATUS_ICONS)) {
        return null;
    }
    const Icon = STATUS_ICONS[status];
    return react_1.default.createElement(Icon, { className: "aksel-inline-message__icon", "aria-hidden": true });
}
//# sourceMappingURL=InlineMessageIcon.js.map