import React from 'react';
import { Provider } from 'react-redux';
import { text } from '@storybook/addon-knobs';
import configureStore from '../../../../store/store';
import testData from '../../../../../.storybook/test-data';
import AddRecipient from './add-recipient.component';
const store = configureStore(testData);
export default {
title: 'Pages/Send/SendContent/AddRecipient',
id: __filename,
decorators: [(story) => {story()}],
};
export const DefaultStory = () => {
const { metamask } = store.getState();
const { addressBook, recipient } = metamask;
return (
undefined}
nonContacts={[addressBook]}
ownedAccounts={[addressBook]}
addressBook={[addressBook]}
updateGas={() => undefined}
// ToError and ToWarning wording must match on translation
ensError={text('To Error', 'loading')}
ensWarning={text('To Warning', 'loading')}
/>
);
};
DefaultStory.storyName = 'Default';