"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.UIIcon = void 0;
const react_1 = __importDefault(require("react"));
const react_2 = require("@fluentui/react");
require("./UIIcon.scss");
/**
 * UIIcon component
 * based on https://developer.microsoft.com/en-us/fluentui#/controls/web/button
 *
 * @exports
 * @class UIIcon
 * @extends {React.Component<IIconProps, {}>}
 */
class UIIcon extends react_1.default.Component {
    /**
     * Initializes component properties.
     *
     * @param {IIconProps} props
     */
    constructor(props) {
        super(props);
        this.setStyle = () => {
            return {};
        };
    }
    /**
     * @returns {JSX.Element}
     */
    render() {
        const className = this.props.className ? ` ${this.props.className}` : '';
        return react_1.default.createElement(react_2.Icon, { ...this.props, className: `ts-icon${className}`, styles: this.setStyle() });
    }
}
exports.UIIcon = UIIcon;
//# sourceMappingURL=UIIcon.js.map