import React from 'react'; import { storiesOf } from '@storybook/react'; import { ToggleContent, Button, Text, Icons, TextInput } from 'asc-web-components'; import Readme from './README.md'; import withReadme from 'storybook-readme/with-readme'; import { text, withKnobs, boolean, select } from '@storybook/addon-knobs/react'; import { optionsKnob as options } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { set } from 'store2'; storiesOf('Components|ToggleContent', module) .addDecorator(withKnobs) .addDecorator(withReadme(Readme)) .add('base', () => { const valuesMultiSelect = { button: 'button', icon: 'icon', text: 'text', toggleContent: 'toggleContent', textInput: 'textInput' }; const optionsMultiSelect = options('Children', valuesMultiSelect, ['text'], { display: 'multi-select', }); const iconNames = Object.keys(Icons); let children = []; optionsMultiSelect.forEach(function (item, i) { switch (item) { case 'button': children.push(