atom-nuclide
Version:
A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.
44 lines (33 loc) • 1.39 kB
JavaScript
Object.defineProperty(exports, '__esModule', {
value: true
});
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
var _classnames2;
function _classnames() {
return _classnames2 = _interopRequireDefault(require('classnames'));
}
var _reactForAtom2;
function _reactForAtom() {
return _reactForAtom2 = require('react-for-atom');
}
var _commonsNodeString2;
function _commonsNodeString() {
return _commonsNodeString2 = require('../../commons-node/string');
}
var Toolbar = function Toolbar(props) {
var className = (0, (_classnames2 || _classnames()).default)('nuclide-ui-toolbar', _defineProperty({}, 'nuclide-ui-toolbar--' + (0, (_commonsNodeString2 || _commonsNodeString()).maybeToString)(props.location), props.location != null), props.className);
return (_reactForAtom2 || _reactForAtom()).React.createElement(
'div',
{ className: className },
props.children
);
};
exports.Toolbar = Toolbar;