UNPKG

625 BJavaScriptView Raw
1import "core-js/modules/es.array.concat.js";
2import { addons, types } from '@storybook/addons';
3import { ADDON_ID, PANEL_ID } from './shared';
4addons.register(ADDON_ID, function () {
5 addons.add(PANEL_ID, {
6 type: types.TAB,
7 title: 'Docs',
8 route: function route(_ref) {
9 var storyId = _ref.storyId,
10 refId = _ref.refId;
11 return refId ? "/docs/".concat(refId, "_").concat(storyId) : "/docs/".concat(storyId);
12 },
13 match: function match(_ref2) {
14 var viewMode = _ref2.viewMode;
15 return viewMode === 'docs';
16 },
17 render: function render() {
18 return null;
19 }
20 });
21});
\No newline at end of file