import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { StoryContainer } from './helpers'; import { Icon } from '../src'; import * as icons from '../src/icons'; storiesOf('Icons', module) .addDecorator((getStory) => ( { getStory() } )) .addWithInfo('single icon', () => (
)) .add('all icons', () => { const renderIcons = Object.keys(icons).map((icon, i) => { const name = icon.replace('Md', ''); return (

{ name }

) }); return (
{ renderIcons }
); });