2023-08-10 10:04:41 +00:00
|
|
|
import React from 'react'
|
|
|
|
import type { Preview } from '@storybook/react'
|
|
|
|
import { TamaguiProvider } from '@tamagui/web'
|
|
|
|
import { Provider as StatusProvider } from '@status-im/components'
|
2023-09-05 06:32:29 +00:00
|
|
|
import { Provider as ReduxProvider } from 'react-redux'
|
2023-09-05 07:31:17 +00:00
|
|
|
|
|
|
|
import appConfig from '../tamagui.config'
|
2023-09-05 06:32:29 +00:00
|
|
|
import store from '../src/redux/store'
|
2023-09-05 07:31:17 +00:00
|
|
|
import '../src/index.css'
|
2023-08-10 10:04:41 +00:00
|
|
|
|
|
|
|
const preview: Preview = {
|
|
|
|
decorators: [
|
2023-09-05 07:31:17 +00:00
|
|
|
Story => (
|
|
|
|
<TamaguiProvider config={appConfig}>
|
|
|
|
<StatusProvider>
|
|
|
|
<ReduxProvider store={store}>
|
|
|
|
<Story />
|
|
|
|
</ReduxProvider>
|
|
|
|
</StatusProvider>
|
|
|
|
</TamaguiProvider>
|
|
|
|
),
|
2023-08-10 10:04:41 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
export default preview
|