import React from 'react' import {storiesOf} from '@storybook/react' import octicons from 'octicons' import SVGInline from 'react-svg-inline' const Octicon = (props) => { const {name} = props if (name in octicons) { return } else { throw new Error(`No such octicon: "${name}"!`) } } const story = storiesOf('Octicons', module) const sizes = [64, 32, 16] Object.keys(octicons).forEach(name => { story.add(name, () => (
{sizes.map((size, i) => ( ))}
)) })