// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import type { Meta } from '@storybook/react'; import enMessages from '../../_locales/en/messages.json'; import { setupI18n } from '../util/setupI18n'; import { TextAttachment } from './TextAttachment'; import type { PropsType } from './TextAttachment'; const i18n = setupI18n('en', enMessages); const getDefaultProps = (): PropsType => ({ i18n, textAttachment: {}, }); export default { title: 'Components/TextAttachment', } satisfies Meta; export function SolidBgTextBg(): JSX.Element { return ( ); } export function Gradient(): JSX.Element { return ( ); } export function TextWithLineBreaksCondensedFont(): JSX.Element { return ( ); } export function TextWithLineBreaksAutowrapSerifFont(): JSX.Element { return ( ); } export function AutowrapText(): JSX.Element { return ( ); } export function RomeoJuliet(): JSX.Element { return ( ); } export function OverflowNewlineNumbers(): JSX.Element { return ( ); } export function CharacterWrapBold(): JSX.Element { return ( ); } export function MixOfNewlinesOverflowAutowrap(): JSX.Element { return ( ); } export function LinkPreview(): JSX.Element { return ( > Careers', }, }} /> ); } export function LinkPreviewThumbnail(): JSX.Element { return ( > Careers', }, }} /> ); } export function LinkPreviewLongTitle(): JSX.Element { return ( ); } export function LinkPreviewJustUrl(): JSX.Element { return ( ); } export function LinkPreviewJustUrlText(): JSX.Element { return ( ); } export function LinkPreviewReallyLongDomain(): JSX.Element { return ( ); } export function LinkPreviewWRJ(): JSX.Element { return ( ); } export function TextBackgroundAndLinkPreview(): JSX.Element { return ( ); }