text: // https://github.com/diegohaz/arc/wiki/Storybook
  import React from 'react'
  import { configure, addDecorator } from '@storybook/react'
  import { Provider } from 'react-redux'
  import { BrowserRouter } from 'react-router-dom'
  import { ThemeProvider } from 'styled-components'
  import configureStore from 'store/configure'
  import theme from 'components/themes/default'
  
  const store = configureStore({})
  const req = require.context('components', true, /.stories.js$/)
  
  function loadStories() {
    req.keys().forEach(filename => req(filename))
  }
  
  addDecorator(story => (
    <Provider store={store}>
      <BrowserRouter>
        <ThemeProvider theme={theme}>{story()}</ThemeProvider>
      </BrowserRouter>
    </Provider>
  ))
  
  configure(loadStories, module)
  