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: '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 = () => ( );