/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var React = require('react');
var react_redux_1 = require('react-redux');
var ModalIds = require('../modal/modalDialogIds');
var Modal = require('../modal/modalDialog.js');
var PluginsTopNavItem = function (props) {
return React.createElement("li", {className: "slds-context-bar__item"},
React.createElement("a", {href: "javascript:void(0);", onClick: function () { return props.showPluginsDialog(); }, className: "slds-context-bar__label-action", title: "Plugins"},
React.createElement("span", {className: "slds-truncate"}, "Plugin Manager")
)
);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = react_redux_1.connect(function (state) {
return {};
}, function (dispatch) {
return {
showPluginsDialog: function () {
dispatch(Modal.showModal(ModalIds.PLUGINS));
}
};
})(PluginsTopNavItem);
|