import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../../../store/store'; import testData from '../../../../.storybook/test-data'; import { CHAIN_IDS } from '../../../../shared/constants/network'; import { ImportTokensModal } from './import-tokens-modal'; const createStore = (chainId = CHAIN_IDS.MAINNET, useTokenDetection = true) => { return configureStore({ ...testData, metamask: { ...testData.metamask, useTokenDetection, providerConfig: { chainId }, }, }); }; export default { title: 'Components/Multichain/ImportTokensModal', component: ImportTokensModal, argTypes: { onClose: { action: 'onClose', }, }, }; export const DefaultStory = (args) => ; DefaultStory.decorators = [ (Story) => ( ), ]; DefaultStory.storyName = 'Default'; export const CustomImportOnlyStory = (args) => ; CustomImportOnlyStory.decorators = [ (Story) => ( ), ]; CustomImportOnlyStory.storyName = 'Custom Import Only'; export const TokenDetectionDisabledStory = (args) => ( ); TokenDetectionDisabledStory.decorators = [ (Story) => ( ), ]; TokenDetectionDisabledStory.storyName = 'Token Detection Disabled';