// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { text } from '@storybook/addon-knobs'; import { storiesOf } from '@storybook/react'; import type { PropsType } from './GroupDescription'; import { GroupDescription } from './GroupDescription'; import { setupI18n } from '../../util/setupI18n'; import enMessages from '../../../_locales/en/messages.json'; const i18n = setupI18n('en', enMessages); const story = storiesOf('Components/Conversation/GroupDescription', module); const createProps = (overrideProps: Partial = {}): PropsType => ({ i18n, title: text('title', overrideProps.title || 'Sample Title'), text: text('text', overrideProps.text || 'Default group description'), }); story.add('Default', () => ); story.add('Long', () => ( )); story.add('With newlines', () => ( )); story.add('With emoji', () => ( )); story.add('With link', () => ( )); story.add('Kitchen sink', () => ( ));