mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-13 21:26:44 +03:00
13 lines
336 B
JavaScript
13 lines
336 B
JavaScript
import React from 'react';
|
|
import addons from '@storybook/addons';
|
|
import Panel from './Panel';
|
|
import { ADDON_ID, PANEL_ID } from './constant';
|
|
|
|
addons.register(ADDON_ID, api => {
|
|
const channel = addons.getChannel();
|
|
addons.addPanel(PANEL_ID, {
|
|
title: 'Theme',
|
|
render: () => <Panel channel={channel} api={api} />
|
|
});
|
|
});
|