import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../../../store/store'; import testData from '../../../../.storybook/test-data'; import ContactListTab from './contact-list-tab.component'; // Using Test Data For Redux const store = configureStore(testData); export default { title: 'Pages/Settings/ContactListTab', decorators: [(story) => {story()}], argsTypes: { addressBook: { control: 'object' }, hideAddressBook: { control: 'boolean' }, selectedAddress: { control: 'select' }, history: { action: 'history' }, }, }; const { metamask } = store.getState(); const { addresses } = metamask; export const DefaultStory = (args) => { return (
); }; DefaultStory.storyName = 'Default'; DefaultStory.args = { addressBook: addresses, hideAddressBook: false, selectedAddress: addresses.map(({ address }) => address), };