"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("../../../Utilities");
var Styling_1 = require("../../../Styling");
var BaseButton_1 = require("../BaseButton");
var PrimaryButton_styles_1 = require("./PrimaryButton.styles");
var PrimaryButton = (function (_super) {
    tslib_1.__extends(PrimaryButton, _super);
    function PrimaryButton() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        /**
         * Set this BaseComponent._resolveComponentRef to false, bypassing resolution of componentRef.
         */
        _this._shouldUpdateComponentRef = false;
        return _this;
    }
    PrimaryButton.prototype.render = function () {
        var _a = this.props, theme = _a.theme, styles = _a.styles;
        return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: 'ms-Button--primary', onRenderDescription: Utilities_1.nullRender, styles: PrimaryButton_styles_1.getStyles(theme, styles) })));
    };
    return PrimaryButton;
}(Utilities_1.BaseComponent));
PrimaryButton = tslib_1.__decorate([
    Utilities_1.customizable([Styling_1.ThemeSettingName])
], PrimaryButton);
exports.PrimaryButton = PrimaryButton;

//# sourceMappingURL=PrimaryButton.js.map
