2023-04-05 12:48:38 +00:00
|
|
|
import React from 'react'
|
2023-04-11 18:52:18 +00:00
|
|
|
import type { Preview } from '@storybook/react'
|
|
|
|
|
2023-04-04 13:52:02 +00:00
|
|
|
import { Provider, ToastContainer } from '../src'
|
2023-01-10 11:24:24 +00:00
|
|
|
|
2023-02-14 16:36:38 +00:00
|
|
|
import './reset.css'
|
|
|
|
|
2023-04-11 18:52:18 +00:00
|
|
|
// export const parameters: Parameters = {
|
|
|
|
// actions: { argTypesRegex: '^on[A-Z].*' },
|
|
|
|
// controls: {
|
|
|
|
// matchers: {
|
|
|
|
// color: /(background|color)$/i,
|
|
|
|
// date: /Date$/,
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// }
|
|
|
|
|
|
|
|
const preview: Preview = {
|
|
|
|
parameters: {
|
|
|
|
// layout: 'centered',
|
2023-01-13 14:52:08 +00:00
|
|
|
},
|
2023-04-11 18:52:18 +00:00
|
|
|
decorators: [
|
|
|
|
Story => {
|
|
|
|
return (
|
|
|
|
<Provider>
|
|
|
|
<Story />
|
|
|
|
<ToastContainer />
|
|
|
|
</Provider>
|
|
|
|
)
|
|
|
|
},
|
|
|
|
],
|
2023-01-10 11:24:24 +00:00
|
|
|
}
|
|
|
|
|
2023-04-11 18:52:18 +00:00
|
|
|
export default preview
|