2021-11-02 18:01:13 -05:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
2023-10-11 12:06:43 -07:00
|
|
|
import type { Meta } from '@storybook/react';
|
|
|
|
import type { Props } from './BadgeDescription';
|
2021-11-02 18:01:13 -05:00
|
|
|
import { BadgeDescription } from './BadgeDescription';
|
|
|
|
|
2022-06-06 20:48:02 -04:00
|
|
|
export default {
|
|
|
|
title: 'Components/BadgeDescription',
|
2023-10-11 12:06:43 -07:00
|
|
|
} satisfies Meta<Props>;
|
2021-11-02 18:01:13 -05:00
|
|
|
|
2022-11-17 16:45:19 -08:00
|
|
|
export function NormalName(): JSX.Element {
|
|
|
|
return (
|
|
|
|
<BadgeDescription
|
|
|
|
template="{short_name} is here! Hello, {short_name}! {short_name}, I think you're great. This is not replaced: {not_replaced}"
|
|
|
|
firstName="Alice"
|
|
|
|
title="Should not be seen"
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
2021-11-02 18:01:13 -05:00
|
|
|
|
2023-10-11 12:06:43 -07:00
|
|
|
export function NameWithRTLOverrides(): JSX.Element {
|
2022-11-17 16:45:19 -08:00
|
|
|
return (
|
|
|
|
<BadgeDescription
|
|
|
|
template="Hello, {short_name}! {short_name}, I think you're great."
|
|
|
|
title={'Flip-\u202eflop'}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|