content: /**
   * Kodo Kojo - Software factory done right
   * Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program. If not, see <http://www.gnu.org/licenses/>.
   */
  
  import React from 'react'
  import { Provider } from 'react-redux'
  import { IntlProvider } from 'react-intl'
  import { storiesOf, action, linkTo } from '@kadira/storybook'
  
  // contexte
  import configureStore from '../../store/configureStore'
  import en from '../../i18n/en'
  
  // component to story
  import Toaster from './Toaster.component'
  
  const initialState = {}
  
  const store = configureStore(initialState)
  
  storiesOf('Toaster', module)
    .addDecorator((story) => (
      <Provider store={store}>
        <IntlProvider locale="en" messages={ en }>
          <div style={{ width: '300px', margin: '50px' }}>
            { story() }
          </div>
        </IntlProvider>
      </Provider>
    ))
    .add('accept', () => (
      <Toaster
        action="I understand"
        active
        icon="question_answer"
        label="Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo uti liz ado desde o século XVI."
        onClick={ () => {} }
        onTimeout={ () => {} }
        timeout={ 2000 }
        variant="accept"
      />
    ))
    .add('cancel', () => ( 
      <Toaster
        active
        icon="question_answer"
        label="Snackbar action info"
        onClick={ () => {} }
        onTimeout={ () => {} }
        timeout={ 2000 }
        variant="info"
      />
    ))
    .add('warning', () => ( 
      <Toaster
        active
        icon="question_answer"
        label={
        `
          Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI.
          Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI.
        `}
        onClick={ () => {} }
        onTimeout={ () => {} }
        timeout={ 2000 }
        variant="warning"
      />
    ))
  