"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 stylesImport = require("./Check.scss");
var styles = stylesImport;
var Check = (function (_super) {
    __extends(Check, _super);
    function Check() 

    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, (_b = {},
                _b['is-checked ' + styles.rootIsChecked] = isChecked,
                _b)) },
            React.createElement("div", { className: Utilities_1.css('ms-Icon ms-Check-background', styles.background) }),
            React.createElement("i", { className: Utilities_1.css('ms-Check-check ms-Icon ms-Icon--CheckMark', styles.check) })));
        var _b;
    };
    return Check;
}(Utilities_1.BaseComponent));
Check.defaultProps = {
    isChecked: false
};
exports.Check = Check;

//# sourceMappingURL=Check.js.map

{
        return _super !== null && _super.apply(this, arguments) || this;
    }