var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
import React from 'react';
import styled from '@monstrosity/utilities/themed-components';
import { Loader, IconRoot } from './icon';
import { Loadable } from '../../primitives/Loadable/loadable';
var BootstrapWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\twidth: ", " !important;\n\theight: ", " !important;\n\n\t& svg {\n\t\twidth: ", " !important;\n\t\theight: ", " !important;\n\t}\n"], ["\n\twidth: ", " !important;\n\theight: ", " !important;\n\n\t& svg {\n\t\twidth: ", " !important;\n\t\theight: ", " !important;\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';
});
export var BootstrapIcon = function (_a) {
    var bootstrapIcon = _a.bootstrapIcon, size = _a.size;
    var importStatement = function () { return import("react-bootstrap-icons/dist/icons/" + bootstrapIcon); };
    var fallbackStatement = function () { return require("react-bootstrap-icons/dist/icons/" + bootstrapIcon).default; };
    return (React.createElement(IconRoot, null,
        React.createElement(BootstrapWrapper, { size: size },
            React.createElement(Loadable, { loadingView: React.createElement(Loader, { size: size }), importStatement: importStatement, fallbackStatement: fallbackStatement, size: size }))));
};
var templateObject_1;
