spee.ch/client/build/components/NavBarChannelOptionsDropdown/index.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2018-05-23 04:06:37 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function NavBarChannelDropdown(_ref) {
var channelName = _ref.channelName,
handleSelection = _ref.handleSelection,
defaultSelection = _ref.defaultSelection,
VIEW = _ref.VIEW,
LOGOUT = _ref.LOGOUT;
2018-06-08 17:50:25 +02:00
return _react.default.createElement("div", {
className: 'nav-bar-link link--nav'
}, _react.default.createElement("select", {
2018-05-23 04:06:37 +02:00
type: "text",
id: "nav-bar-channel-select",
2018-06-08 17:50:25 +02:00
className: "select select--arrow",
2018-05-23 04:06:37 +02:00
onChange: handleSelection,
value: defaultSelection
}, _react.default.createElement("option", {
id: "nav-bar-channel-select-channel-option"
}, channelName), _react.default.createElement("option", {
value: VIEW
}, "View"), _react.default.createElement("option", {
value: LOGOUT
2018-06-08 17:50:25 +02:00
}, "Logout")));
2018-05-23 04:06:37 +02:00
}
var _default = NavBarChannelDropdown;
exports.default = _default;