wakuconnect-chat-sdk/packages/components/.storybook/preview.tsx

35 lines
617 B
TypeScript
Raw Normal View History

import React from 'react'
import type { Preview } from '@storybook/react'
import { Provider, ToastContainer } from '../src'
2023-01-10 11:24:24 +00:00
import './reset.css'
// 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
},
decorators: [
Story => {
return (
<Provider>
<Story />
<ToastContainer />
</Provider>
)
},
],
2023-01-10 11:24:24 +00:00
}
export default preview