import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, text, select, number, color, boolean } from '@storybook/addon-knobs/react'; import withReadme from 'storybook-readme/with-readme'; import Readme from './README.md'; import Section from '../../.storybook/decorators/section'; import { ContextMenuButton, Icons } from 'asc-web-components'; const iconNames = Object.keys(Icons); function getData() { console.log('getData'); return [ {key: 'key1', label: 'label1', onClick: () => console.log('label1')}, {key: 'key2', label: 'label2', onClick: () => console.log('label2')} ] } storiesOf('Components|ContextMenuButton', module) .addDecorator(withKnobs) .addDecorator(withReadme(Readme)) .add('base', () => (
));