import React from 'react';
import { storiesOf } from '@storybook/react';
import { Toast, toastr } from 'asc-web-components';
import Readme from './README.md';
import { text, boolean, withKnobs, select, number } from '@storybook/addon-knobs/react';
import withReadme from 'storybook-readme/with-readme';
import Section from '../../../.storybook/decorators/section';
const type = ['success', 'error', 'warning', 'info'];
storiesOf('Components|Toast', module)
.addDecorator(withKnobs)
.addDecorator(withReadme(Readme))
.add('base', () => {
const toastType = `${select('type', type, 'success')}`;
const toastText = `${text('text', 'Demo text for Toast')}`;
const titleToast = `${text('title', 'Demo title')}`;
const withCross = boolean('withCross', false);
const timeout = number('timeout', '5000');
return (
<>
>
);
});