UNPKG

542 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.selectTab = selectTab;
7exports.showTabs = showTabs;
8function selectTab(tabId) {
9 return {
10 type: 'TAB_SELECTED',
11 payload: tabId
12 };
13}
14
15function showTabs() {
16 var tabsToShow = {};
17
18 for (var _len = arguments.length, tabIds = Array(_len), _key = 0; _key < _len; _key++) {
19 tabIds[_key] = arguments[_key];
20 }
21
22 tabIds.map(function (e) {
23 return tabsToShow[e] = true;
24 });
25 return {
26 type: 'TAB_SHOWED',
27 payload: tabsToShow
28 };
29}
\No newline at end of file