/* eslint-disable react/prop-types */
import React from 'react';
import addons from '@storybook/addons';

import StoryPanel from './StoryPanel';
import { ADDON_ID, PANEL_ID } from '.';

export function register() {
  addons.register(ADDON_ID, api => {
    addons.addPanel(PANEL_ID, {
      title: 'Story',
      render: ({ active, key }) => <StoryPanel key={key} api={api} active={active} />,
      paramKey: 'story',
    });
  });
}

/* eslint-disable react/prop-types */
import React from 'react';
import addons from '@storybook/addons';

import StoryPanel from './StoryPanel';
import { ADDON_ID, PANEL_ID } from '.';

export function register() {
  addons.register(ADDON_ID, api => {
    addons.addPanel(PANEL_ID, {
      title: 'Story',
      render: ({ active, key }) => <StoryPanel key={key} api={api} active={active} />,
      paramKey: 'storysource',
    });
  });
}

CHANGE paramKey for storysource addon disable
CHANGE paramKey for storysource addon disable
