import React from 'react'; import { select, object } from '@storybook/addon-knobs'; import { groupBy } from 'lodash'; import en from '../../../../app/_locales/en/messages.json'; import MetaMaskTranslation from './metamask-translation'; export default { title: 'Components/App/MetamaskTranslation', id: __filename, }; const { keysWithSubstitution, keysWithoutSubstitution } = groupBy( Object.keys(en), (key) => { if (en[key].message.includes('$1')) { return 'keysWithSubstitution'; } return 'keysWithoutSubstitution'; }, ); export const WithoutSubstitutions = () => ( ); export const WithSubstitutions = () => ( ); export const WithTemplate = () => ( );