1 | import * as React from 'react';
|
2 | import addons from '@storybook/addons';
|
3 | import Panel from './components/Panel';
|
4 | import { ADDON_ID, PANEL_ID, PARAM_KEY } from './shared';
|
5 | import { createTitleListener } from './title';
|
6 | addons.register(ADDON_ID, function (api) {
|
7 | addons.addPanel(PANEL_ID, {
|
8 | title: createTitleListener(api),
|
9 | render: function render(_ref) {
|
10 | var active = _ref.active,
|
11 | key = _ref.key;
|
12 | return React.createElement(Panel, {
|
13 | api: api,
|
14 | key: key,
|
15 | active: active
|
16 | });
|
17 | },
|
18 | paramKey: PARAM_KEY
|
19 | });
|
20 | }); |
\ | No newline at end of file |