import * as React from 'react'; import { storiesOf } from '@storybook/react'; import { number as numberKnob, text } from '@storybook/addon-knobs'; import { ConversationHero } from './ConversationHero'; // @ts-ignore import { setup as setupI18n } from '../../../js/modules/i18n'; // @ts-ignore import enMessages from '../../../_locales/en/messages.json'; const i18n = setupI18n('en', enMessages); const getTitle = () => text('name', 'Cayce Bollard'); const getName = () => text('name', 'Cayce Bollard'); const getProfileName = () => text('profileName', 'Cayce Bollard (profile)'); const getAvatarPath = () => text('avatarPath', '/fixtures/kitten-4-112-112.jpg'); const getPhoneNumber = () => text('phoneNumber', '+1 (646) 327-2700'); storiesOf('Components/Conversation/ConversationHero', module) .add('Direct (Three Other Groups)', () => { return (