// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import type { Meta } 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); export default { title: 'Components/Conversation/GroupDescription', argTypes: { title: { control: { type: 'text' } }, text: { control: { type: 'text' } }, }, args: { i18n, title: 'Sample Title', text: 'Default group description', }, } satisfies Meta; export function Default(args: PropsType): JSX.Element { return ; } export function Long(args: PropsType): JSX.Element { return ( ); } export function WithNewlines(args: PropsType): JSX.Element { return ( ); } export function WithEmoji(args: PropsType): JSX.Element { return ; } export function WithLink(args: PropsType): JSX.Element { return ( ); } export function KitchenSink(args: PropsType): JSX.Element { return ( ); }