"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
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"));
var react_fontawesome_1 = require("@fortawesome/react-fontawesome");
var themed_components_1 = __importDefault(require("@monstrosity/utilities/themed-components"));
var FontAwesomeWrapper = themed_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n    top: 0;\n    width: ", ";\n    height: ", ";\n\tposition: relative;\n\n\t& svg {\n\t\twidth: ", " !important;\n\t\theight: ", " !important;\n\t\tposition: absolute;\n\t}\n"], ["\n    top: 0;\n    width: ", ";\n    height: ", ";\n\tposition: relative;\n\n\t& svg {\n\t\twidth: ", " !important;\n\t\theight: ", " !important;\n\t\tposition: absolute;\n\t}\n"])), function (_a) {
    var size = _a.size;
    return size || '2rem';
}, function (_a) {
    var size = _a.size;
    return size || '2rem';
}, function (_a) {
    var size = _a.size;
    return size || '2rem';
}, function (_a) {
    var size = _a.size;
    return size || '2rem';
});
exports.FontAwesome = function (_a) {
    var size = _a.size, fas = _a.fas;
    return (react_1.default.createElement(FontAwesomeWrapper, { size: size },
        react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: [
                fas.prefix,
                fas.name,
            ] })));
};
var templateObject_1;
