"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var Utilities_1 = require("../../Utilities");
var Icon_1 = require("../../Icon");
var stylesImport = require("./Check.scss");
var styles = stylesImport;
var Check = (function (_super) {
    __extends(Check, _super);
    function Check() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Check.prototype.shouldComponentUpdate = function (newProps) {
        return this.props.isChecked !== newProps.isChecked || this.props.checked !== newProps.checked;
    };
    Check.prototype.render = function () {
        var _a = this.props, isChecked = _a.isChecked, checked = _a.checked;
        isChecked = isChecked || checked;
        return (React.createElement("div", { className: Utilities_1.css('ms-Check', styles.root, isChecked && ('is-checked ' + styles.rootIsChecked)) },
            React.createElement(Icon_1.Icon, { className: Utilities_1.css('ms-Check-background', styles.background), iconName: 'fullCircleMask' }),
            React.createElement(Icon_1.Icon, { className: Utilities_1.css('ms-Check-circle', styles.circle), iconName: 'circleRing' }),
            React.createElement(Icon_1.Icon, { className: Utilities_1.css('ms-Check-check', styles.check), iconName: 'checkMark' })));
    };
    return Check;
}(Utilities_1.BaseComponent));
Check.defaultProps = {
    isChecked: false
};
exports.Check = Check;

//# sourceMappingURL=Check.js.map
