UNPKG

512 BJavaScriptView Raw
1import React from 'react';
2import { addons } from '@storybook/addons';
3import { StoryPanel } from './StoryPanel';
4import { ADDON_ID, PANEL_ID } from './index';
5addons.register(ADDON_ID, function (api) {
6 addons.addPanel(PANEL_ID, {
7 title: 'Story',
8 render: function render(_ref) {
9 var active = _ref.active,
10 key = _ref.key;
11 return active ? /*#__PURE__*/React.createElement(StoryPanel, {
12 key: key,
13 api: api
14 }) : null;
15 },
16 paramKey: 'storysource'
17 });
18});
\No newline at end of file