// @flow
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { Toast } from './index';
import { withDocs } from '../../../../../.storybook/with-docs';
import docs from './TOAST.mkd';

storiesOf('Core/Overlays/Toast', module).add(
  'standalone',
  withDocs(docs)(() => (
    <Toast id="toastId" onClose={action('Toast closed')} timerDelay={10000}>
      Something amazing I guess
    </Toast>
  )),
);
