2022-07-21 00:07:09 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import type { LocalizerType } from '../types/Util';
|
|
|
|
import { getStoryDistributionListName } from '../types/Stories';
|
|
|
|
|
|
|
|
type PropsType = {
|
|
|
|
i18n: LocalizerType;
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
};
|
|
|
|
|
2022-11-18 00:45:19 +00:00
|
|
|
export function StoryDistributionListName({
|
2022-07-21 00:07:09 +00:00
|
|
|
i18n,
|
|
|
|
id,
|
|
|
|
name,
|
2022-11-18 00:45:19 +00:00
|
|
|
}: PropsType): JSX.Element {
|
2022-07-21 00:07:09 +00:00
|
|
|
return <>{getStoryDistributionListName(i18n, id, name)}</>;
|
2022-11-18 00:45:19 +00:00
|
|
|
}
|