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 (
); }) .add('Direct (Two Other Groups)', () => { return (
); }) .add('Direct (One Other Group)', () => { return (
); }) .add('Direct (No Groups, Name)', () => { return (
); }) .add('Direct (No Groups, Just Profile)', () => { return (
); }) .add('Direct (No Groups, Just Phone Number)', () => { return (
); }) .add('Direct (No Groups, No Data)', () => { return (
); }) .add('Group (many members)', () => { return (
); }) .add('Group (one member)', () => { return (
); }) .add('Group (zero members)', () => { return (
); }) .add('Group (No name)', () => { return (
); }) .add('Note to Self', () => { return (
); });